Skip to content

dfourcfive/flutter_assets_to_path_constants_bash_script

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

flutter_assets_to_path_constants_bash_script

A simple bash script that eliminate the need to create a constant file and declare constants that contains the path of your asset for each asset in your project

Usage

Note

  • For windows user use bash to run the script : bash ./flutter_assets_to_path_constants_bash_script.sh

Commands

sh flutter_assets_to_path_constants_bash_script.sh YOUR_ASSETS_FOLDER_PATH DESIRED_OUTPUT_FILE_PATH DESIRED_OUTPUT_FILENAME
  • If no arguments are given , the script will use default values , extract all assets inside the ./assets folder and create the ouput file assets_constants.dart inside the ./lib folder

Additional

All kinds of contribution is welcomed

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages