Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/xaldarof/assets-generator
Assets Generator saves you time and enhances your creative workflow. Dive into a seamless asset creation experience and elevate your project's visual appeal with ease.
https://github.com/xaldarof/assets-generator
assets flutter generator
Last synced: about 1 month ago
JSON representation
Assets Generator saves you time and enhances your creative workflow. Dive into a seamless asset creation experience and elevate your project's visual appeal with ease.
- Host: GitHub
- URL: https://github.com/xaldarof/assets-generator
- Owner: xaldarof
- License: other
- Created: 2023-01-31T16:25:45.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2023-06-15T16:46:49.000Z (over 1 year ago)
- Last Synced: 2024-09-28T14:41:24.154Z (about 2 months ago)
- Topics: assets, flutter, generator
- Language: Dart
- Homepage:
- Size: 425 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
Run in terminal :
`flutter pub run simple_assets_generator:generate -i assets/path/files -o lib -n Images -ext jpeg,png -fn assets_file`
`flutter pub run simple_assets_generator:grouped_generate -i assets/path/files -o lib -n Images -fn assets_file`[required] `-i` assets directory, in my case assets/path/files
[required] `-o` generated file output path, lib/assets_names in my case
[optional] `-n` generated class name
[optional] `-fn` generated file name
[optional] `-ext` generate only files with given extensions (not supported for grouped generation)
[Open pub.dev](https://pub.dev/packages/simple_assets_generator)
```dart
class TxtFiles {
static String fileTxt = 'assets/path/files/text1.txt';
}
``````dart
class Images {
static String logoPng = 'assets/path/files/logo.png';
}
```Grouped generation result
```dart
abstract class AssetImages {
static String png1 =
"assets/path/files/1.png";
static String png2 =
"assets/path/files/2.png";
}abstract class AssetDocuments {
static String txtText1 =
"assets/path/files/text1.txt";
static String txtText2 =
"assets/path/files/text2.txt";
}
```