flutter_gen
flutter_gen copied to clipboard
Select only some folders to generate assets
Is it possible to select only some folders and not all from assets/
?
with this I mean overriding the default
flutter:
assets:
- ...
and tell flutter_gen
to generate the assets only of some directories
Hi @elianmortega Can you tell me what's your motivation here? Then we can consider adding this feature. 🙂
In easy_localization I'm storing data as en-US.json . When generating I've same issues
[SEVERE]
CheckedFromJsonException
Could not create FlutterGen
.
There is a problem with "assets".
type 'YamlList' is not a subtype of type 'Map<dynamic, dynamic>' in type cast
[INFO] Reading cached asset graph completed, took 91ms
@gokuldasvr
It seems like a different problem.
Please fire a new issue and attach your pubspec.yaml
configuration.
Please consider the following use-case:
assets/images/... -> should be generated
assets/data/... -> should not be generated
All files inside the data folder are simple data files, for example json or xml files. Which are used internally in the flutter application and therefore should not be considered as layout files (images, color, fonts etc.).
It would be great to have an exclude:
property to defines those files or directories.
Any updates on this?
Is it possible to select only some folders and not all from
assets/
?with this I mean overriding the default
flutter: assets: - ...
and tell
flutter_gen
to generate the assets only of some directories
You can generate flutter_gen
files without specifying all your asset paths how ?
Any updates?
assets
-> exclude
has added to support the request.
Any updates?