simple_assets_generator 1.0.5 simple_assets_generator: ^1.0.5 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
[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] [-ext] generate only if extension in ends with given extensions
class TxtFiles {
static String fileTxt = 'assets/path/files/file.txt';
}
class Images {
static String fileTxt = 'assets/path/files/logo.png';
}