simple_assets_generator 1.0.7 simple_assets_generator: ^1.0.7 copied to clipboard
Assets generator package.
Run in terminal :
flutter pub run simple_assets_generator:generate -i assets/path/files -o lib -n Images -ext jpeg,png -fn asset_names
[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 if file extension in given extensions
class TxtFiles {
static String fileTxt = 'assets/path/files/file.txt';
}
class Images {
static String fileTxt = 'assets/path/files/logo.png';
}