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

Overview

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"

You might also like...

Given a JSON string, this library will generate all the necessary Dart classes to parse and generate JSON.

JSON to Dart Given a JSON string, this library will generate all the necessary Dart classes to parse and generate JSON. This library is designed to ge

Sep 27, 2022

This is a command-line app written on dart language for flutter applications that will help you to generate some boilerplate code

dart-generator Manual installation: 1- generate a platform executable from code dart compile exe main.dart -o generator this will generate a new gene

Jun 8, 2022

Aris inheritedwidget - The Inherited Widget helps you to easily distribute your app state to every widget in your Flutter app

Aris inheritedwidget - The Inherited Widget helps you to easily distribute your app state to every widget in your Flutter app

Flutter Tutorial - Inherited Widget The InheritedWidget helps you to easily dist

Dec 29, 2021

Kyber Mod Manager A Mod Manager build for Kyber.

Kyber Mod Manager A Mod Manager build for Kyber.

Kyber Mod Manager A Mod Manager build for Kyber. This app is not affiliated with Kyber or any of its creators. Key Features • Download • Screenshots •

Jul 17, 2022

Daily-Task-Manager a daily task manager application project created in flutter

Daily-Task-Manager a daily task manager application project created in flutter

This is a daily task manager application project created in flutter. Install this application on Android - Install from Play Store

May 10, 2022

Automatically generate profile picture with random first name and background color. But you can still provide pictures if you have them. As the default color, based on the name of the first letter. :fire: :fire: :fire:

Automatically generate profile picture with random first name and background color. But you can still provide pictures if you have them. As the default color, based on the name of the first letter. :fire: :fire: :fire:

FLUTTER PROFILE PICTURE Automatically generate profile picture with random first name and background color. But you can still provide pictures if you

Aug 23, 2022

A Video and Audio player that can play from local assets, local files and network URLs with the powerful controls

A Video and Audio player that can play from local assets, local files and network URLs with the powerful controls

Video/Audio Player in Flutter with Powerful controls How can we play videos in Flutter? There is a library directly from the Flutter team simply calle

Jan 31, 2022

A digital diary and mood tracking app that helps you in keeping track of your mood and productivity throughout the month/year.

A digital diary and mood tracking app that helps you in keeping track of your mood and productivity throughout the month/year.

StarBook ✨ A digital diary that can help you in keeping track of your mood and productivity throughout the month. Mood tracker is a good way to see ho

Sep 15, 2022

Access app version and git informations from auto-generated and configurable widgets

This is a proof of concept and WIP Feedback and ideas welcome !! Access your pubspec and git commit informations like versions and commit status from

Jul 7, 2021
Comments
  • error in SDK version

    error in SDK version

    when add it, show me error in terminal:

    The current Dart SDK version is 2.17.6.

    Because aagel depends on asset_manager_cli >=0.1.0-dev.0+1 which requires SDK version >=2.18.0 <3.0.0, version solving failed. Running "flutter pub get" in aagel...
    pub get failed (1; Because aagel depends on asset_manager_cli >=0.1.0-dev.0+1 which requires SDK version >=2.18.0 <3.0.0, version solving failed.)

    and when modify sdk version: 2.18.0 show me error in terminal:

    The current Dart SDK version is 2.17.6.

    Because aagel requires SDK version >=2.18.0 <3.0.0, version solving failed. Running "flutter pub get" in aagel...
    pub get failed (1; Because aagel requires SDK version >=2.18.0 <3.0.0, version solving failed.)

    opened by Mahm0ud-Ahmed 1
Owner
Rutvik Tak
Flutter freelance dev and Technical writer
Rutvik Tak
A Flutter plugin that provides assets abstraction management APIs without UI integration, you can get assets (image/video/audio) on Android, iOS and macOS.

photo_manager Photo/Assets management APIs for Flutter without UI integration, you can get assets (image/video/audio) from Android, iOS and macOS. 提供相

FlutterCandies 500 Sep 23, 2022
A customizable toggle switch widget to add asset background images to the toggle switch.

A customizable toggle switch widget to add asset background images to the toggle switch. Features Use this package to give fancy background images to

null 3 Jul 26, 2022
Extract pubspec details (such as package version, author and description) into Dart code.

build_pubspec This package helps you convert fields from your pubspec.yaml file into Dart code. Based on the fields in your pubspec, this package will

dartside.dev 9 Jul 15, 2021
This example uses a ScrollView, JSON Rest API, Navigation, Alert Pop Up, Progress Indicator, Globals, Images in a shared asset folder, and 100% Shared Code

This example uses a ScrollView, JSON Rest API, Navigation, Alert Pop Up, Progress Indicator, Globals, Images in a shared asset folder, and 100% Shared Code. Now with the ability to login with FaceID, TouchID, and Fingerprint Reader on Android.

Rody Davis 668 Sep 22, 2022
Flutter Image add drag sort, Image add drag sort, support click event, delete, add, long press drag sort.

flutter_image_add_drag_sort Flutter Image add drag sort, Image add drag sort, support click event, delete, add, long press drag sort, support video fi

null 5 Jun 23, 2020
Run Pubspec Script (RPS)

Run Pubspec Script (RPS) Define and use scripts from your pubspec.yaml file. Get

Kamil Klyta 9 Sep 13, 2022
The Swift code generator for your assets, storyboards, Localizable.strings, … — Get rid of all String-based APIs!

SwiftGen SwiftGen is a tool to automatically generate Swift code for resources of your projects (like images, localised strings, etc), to make them ty

null 8.2k Sep 26, 2022
Asset File Generator For Flutter

A simple command line tool that is used to generate the file containing a class, where all the assets present in the given directory will be mapped to a unique variable name.

null 5 Feb 16, 2022
A flutter plugin about qr code or bar code scan , it can scan from file、url、memory and camera qr code or bar code .Welcome to feedback your issue.

r_scan A flutter plugin about qr code or bar code scan , it can scan from file、url、memory and camera qr code or bar code .Welcome to feedback your iss

PengHui Li 111 Sep 9, 2022
This is a mason brick you can use to generate code that get's you started right up with a flutter project

flutter_brick This is a mason brick you can use to generate code that gets you started right up with a flutter project A flutter brick created with th

Bruce Omukoko 3 Sep 16, 2022