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

[Feature Request] Separate and create existing dart file. #10

Open
dylan-kwon opened this issue May 25, 2023 · 1 comment
Open

[Feature Request] Separate and create existing dart file. #10

dylan-kwon opened this issue May 25, 2023 · 1 comment

Comments

@dylan-kwon
Copy link

The current plugin offers a similar function through the named_with_parent option, but I find it somewhat lacking. In my opinion, it would be good to provide a feature that allows for the specification of a certain path and filename, and then generates it as a separate dart file.

path: /assets/fonts/a_font
name: a_font
=> a_fonts.dart

path: /assets/fonts/b_font
name: b_font
=> b_fonts.dart

path: /assets/images
name: images
=> images.dart

@AjnasAskar
Copy link

You can change the existing generated file path from pubspec.yaml

flutter_assets_generator:
output_dir: core\constants
auto_detection: false
named_with_parent: true
output_filename: assets
class_name: Assets
filename_split_pattern: "[-_]"
path_ignore: ["lib"]

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

2 participants