FlutterAssetsGenerator
FlutterAssetsGenerator copied to clipboard
can't change generated file path
flutter_assets_generator:
Optional. Sets the directory of generated localization files. The provided value should be a valid path on lib dir. Default: generated
output_dir: lib/core/app_constants
I tried this but it always gives me : Schema validation: Property 'output_dir' is not allowed also, i tried to change it from the tools but it won't accept sub-folder
it gives me an error or it generates nothing.
I can't reproduce your problem. After you edit the pubspec.yaml file, please try to save the file first before calling the plugin.
thanks for the reply, of course, I'm saving it before I'm calling the plugin.
It works if you write the path like this: output_dir: core\\app_constants
Add the below lines of code inside your pubspec.yaml under the dev_dependances
flutter_assets_generator: output_dir: core\app_constants named_with_parent: false output_filename: images_resource class_name: ImagesResource path_ignore: ["assets/appIcons","assets/json"]