asset_manager_cli 1.0.1 copy "asset_manager_cli: ^1.0.1" to clipboard
asset_manager_cli: ^1.0.1 copied to clipboard

Auto-generate the assets code and add it to your pubspec.yaml .

Asset Manager #

Pub.dev Badge MIT License Badge

Asset manager helps you auto-generate the assets code and add it to your pubspec.yaml .

Quick start #


dart pub global activate asset_manager_cli

Overview #

To auto-generate and add assets code to your pubspec.yaml, run the following command at the root of your project.


asset_manager add

To update to latest version, run the following command.


asset_manager update

❕Note #

The cli assumes the following structure for your assets folder.

---assets/
     |---any_other_assets_folder
     |
     |---fonts/
           | 
           |---font1/
           |    |---font1-style-weight1.ttf
           |    |---font1-style-weight2.ttf
           |    |---font1-style-weight3.ttf
           |
           |
           |---font2/
                |---font2-style-weight1.ttf
                |---font2-style-weight2.ttf
                |---font2-style-weight3.ttf
       

Any other assets folders except fonts can have any name you desire for those assets. But for fonts, you should add them within a folder named fonts within assets folder. And each folder within fonts should be named according to the font-family. Every fonts file should be named in the following way -

Font file name ---> font1-style-weight.ttf
                      ^     ^     ^
                      |     |     |
                      |     |   Weight of the font
                      |     |
                      |    Style of the font
                      |
                     Font family name

Support the project #

"Buy Me A Coffee"

56
likes
120
pub points
59%
popularity

Publisher

verified publishertakrutvik.com

Auto-generate the assets code and add it to your pubspec.yaml .

Repository (GitHub)
View/report issues

Documentation

API reference

Funding

Consider supporting this project:

www.buymeacoffee.com

License

MIT (license)

Dependencies

args, mason_logger, path, pub_updater

More

Packages that depend on asset_manager_cli