flutter_native_splash icon indicating copy to clipboard operation
flutter_native_splash copied to clipboard

Parameter to specify a folder in which the config files are located

Open akvus opened this issue 10 months ago • 0 comments

Is your feature request related to a problem? Please describe. Assuming a Flutter application has multiple flavors, this results in multiple flutter_native_splash YAML configuration files. In extreme cases, there may be 30 or more such files.

When using the CLI arguments -f (for a single flavor) or -F (for all flavors) to specify which configurations to use, the flutter_native_splash tool by default expects these configuration files to be located at the project's root path.

Although the current CLI does provide the --path option to specify the path to a single YAML file for asset generation, this option appears to only work when generating for a single file explicitly. This means that generating assets for all flavors using the -F flag is currently only possible when all the configuration files reside directly in the root directory, thus preventing their organization into subdirectories.

Describe the solution you'd like Add a --directory argument to specify the directory where the configuration files are located, removing the need to specify individual YAML filenames.

akvus avatar Apr 30 '25 07:04 akvus