Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Select only some folders to generate assets #132

Closed
elianortega opened this issue Oct 11, 2021 · 9 comments
Closed

Select only some folders to generate assets #132

elianortega opened this issue Oct 11, 2021 · 9 comments

Comments

@elianortega
Copy link

elianortega commented Oct 11, 2021

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

@lcdsmao
Copy link
Member

lcdsmao commented Oct 14, 2021

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

@gokuldasvr

This comment was marked as off-topic.

@lcdsmao

This comment was marked as off-topic.

@jayjah
Copy link

jayjah commented Dec 4, 2021

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.

@Tkko
Copy link

Tkko commented May 14, 2022

Any updates on this?

@Aristidios
Copy link

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 ?

@linbiaojj
Copy link

Any updates?

@AlexV525
Copy link
Member

AlexV525 commented Mar 6, 2024

assets -> exclude has added to support the request.

@AlexV525 AlexV525 closed this as completed Mar 6, 2024
@dev-shvetsov
Copy link

Any updates?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants