Giter VIP home page Giter VIP logo

Comments (9)

jayjah avatar jayjah commented on May 21, 2024 14

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.

Aristidios avatar Aristidios commented on May 21, 2024 2

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.

lcdsmao avatar lcdsmao commented on May 21, 2024

Hi @elianmortega
Can you tell me what's your motivation here?
Then we can consider adding this feature. 🙂

from flutter_gen.

gokuldasvr avatar gokuldasvr commented on May 21, 2024

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.

lcdsmao avatar lcdsmao commented on May 21, 2024

@gokuldasvr
It seems like a different problem.
Please fire a new issue and attach your pubspec.yaml configuration.

from flutter_gen.

Tkko avatar Tkko commented on May 21, 2024

Any updates on this?

from flutter_gen.

linbiaojj avatar linbiaojj commented on May 21, 2024

Any updates?

from flutter_gen.

AlexV525 avatar AlexV525 commented on May 21, 2024

assets -> exclude has added to support the request.

from flutter_gen.

dev-shvetsov avatar dev-shvetsov commented on May 21, 2024

Any updates?

from flutter_gen.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.