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

can't change generated file path #9

Open
Eng-NUREDDIN opened this issue May 1, 2023 · 4 comments
Open

can't change generated file path #9

Eng-NUREDDIN opened this issue May 1, 2023 · 4 comments

Comments

@Eng-NUREDDIN
Copy link

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

image
it gives me an error or it generates nothing.

@cr1992
Copy link
Owner

cr1992 commented May 5, 2023

I can't reproduce your problem. After you edit the pubspec.yaml file, please try to save the file first before calling the plugin.

@Eng-NUREDDIN
Copy link
Author

thanks for the reply, of course, I'm saving it before I'm calling the plugin.

@Dpeska920
Copy link

It works if you write the path like this: output_dir: core\\app_constants

@3kdeveloper
Copy link

3kdeveloper commented Sep 3, 2023

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

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

4 participants