Skip to content

Commit 1dc2a3b

Browse files
author
Chahat Gupta
committed
- Made search bar sticky
- Readme updated
1 parent ecb1a45 commit 1dc2a3b

File tree

4 files changed

+17
-4
lines changed

4 files changed

+17
-4
lines changed

CHANGELOG.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
## 1.0.2
2+
3+
- Made search bar sticky
4+
- Readme updated
5+
6+
## 1.0.1
7+
8+
- Made changes wrt pub.dev
9+
110
## 1.0.0
211

3-
- Initial version.
12+
- Initial version

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,16 @@ Asset Showcase is a Dart package that generates an HTML showcase for assets pres
1111
- Provides a responsive and interactive user interface.
1212
- Easy to customize and integrate into your projects.
1313

14+
## Screenshots
15+
![Screenshot 2024-05-08 at 1 36 13 PM](https://github.com/chtgupta/flutter-asset-showcase/assets/22120812/7e1503d0-0a0d-41d1-9216-25483cedcf2f)
16+
1417
## Installation
1518

1619
To use Asset Showcase in your Dart project, add it as a dev dependency in your `pubspec.yaml` file:
1720

1821
```yaml
1922
dev_dependencies:
20-
asset_showcase: ^1.0.1
23+
asset_showcase: ^1.0.2
2124
```
2225
2326
Then, run `dart pub get` or `flutter pub get` to install the package.
@@ -48,6 +51,7 @@ dart run asset_showcase --assets=path/to/assets --output=path/to/output.html
4851
## Acknowledgments
4952

5053
Certain parts of the code present in this repository are written using generative AI. I wish to share the prompts that served as a journey to creating this package.
54+
5155
https://chat.openai.com/share/699a3978-6933-475d-a1d3-5c1a72f99e60
5256

5357
## Contributing

bin/asset_showcase.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ void generateHtmlForAssets(String assetsDir, String outputFilePath) {
5252
: (totalSize / 1024).toStringAsFixed(2) + " MB";
5353

5454
// Write the search bar and text below it
55-
htmlStream.write('<div style="display: flex; align-items: center;">');
55+
htmlStream.write('<div style="display: flex; align-items: center; position: sticky; top: 0; z-index: 1; background-color: white;">');
5656
htmlStream.write(
5757
'<div id="search-bar" style="display: flex; align-items: center; flex-grow: 1;">');
5858
htmlStream.write(

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: asset_showcase
22
description: A dart package to help you visually list and analyze your Flutter project assets
3-
version: 1.0.1
3+
version: 1.0.2
44
repository: https://github.com/chtgupta/flutter-asset-showcase
55

66
environment:

0 commit comments

Comments
 (0)