Comments (9)
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.
from flutter_gen.
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 ?
from flutter_gen.
Hi @elianmortega
Can you tell me what's your motivation here?
Then we can consider adding this feature. 🙂
from flutter_gen.
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
from flutter_gen.
@gokuldasvr
It seems like a different problem.
Please fire a new issue and attach your pubspec.yaml
configuration.
from flutter_gen.
Any updates on this?
from flutter_gen.
Any updates?
from flutter_gen.
assets
-> exclude
has added to support the request.
from flutter_gen.
Any updates?
from flutter_gen.
Related Issues (20)
- [FR]: Linter to ensure the use of Assets.images instead of Image.asset(...)
- [BUG]: analyzer v6 is not supported HOT 4
- [BUG]: Unable to access the values when build with style: camel_case HOT 1
- [FR]: Support provider(..) for SVG images HOT 1
- [FR]: Asset path as const
- [FR]: Keyword name conflicts. Prefix the names? HOT 3
- Example links in README lead to Page Not Found
- [FR]: Add Localized Asset Generation HOT 1
- [FR]: Configure default image values HOT 1
- [BUG]: Including folders 1.0x, 2.0x, 3.0x, causes exception HOT 3
- [BUG]: The class 'FileSystemEvent' can't be extended HOT 9
- [BUG]: Why some json file doen't convert to LottieGenImage? HOT 4
- [FR]: Parsing colors into several separate classes. HOT 1
- [FR]: Support getting filename HOT 2
- [FR]: Fonts weight HOT 2
- [BUG]: flutter_svg `DefaultSvgTheme` not working
- [FR]: Support for useArtboardSize in RiveAnimation.asset
- [FR]: Conditionally bundling assets based on flavor HOT 3
- [FR]: Support for lottie zip archives
- [FR]: dotLottie support
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flutter_gen.