FlutterAssetsGenerator icon indicating copy to clipboard operation
FlutterAssetsGenerator copied to clipboard

[Feature Request] Separate and create existing dart file.

Open dylan-kwon opened this issue 2 years ago • 1 comments

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

dylan-kwon avatar May 25 '23 03:05 dylan-kwon

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"]

AjnasAskar avatar Jan 16 '24 12:01 AjnasAskar