Last updated:
0 purchases
flutter asset manager
👑 flutter_asset_manager #
This package is brought to you by Usama Azad 😎 #
A command-line tool which auto generates asset directories and register them in pubspec.yaml
Features #
Auto Generates Assets Directories
Auto Register Directories In pubspec.yaml
Auto Generate Dart File For Assets (coming soon 🔜)
Installation #
1. Use this package as an executable #
Install it #
You can install the package from the command line:
dart pub global activate flutter_asset_manager
copied to clipboard
OR
dart pub global activate --source git https://github.com/Usama-Azad/flutter_asset_manager.git
copied to clipboard
Use it #
The package has the following executables:
assetX
copied to clipboard
2. Use this package as a library #
Run command #
With Dart:
dart pub add flutter_asset_manager
copied to clipboard
With Flutter:
flutter pub add flutter_asset_manager
copied to clipboard
Add as a Dev Dependency in pubspec.yaml #
dev_dependencies:
flutter_asset_manager: "^0.0.1"
copied to clipboard
OR
dev_dependencies:
flutter_asset_manager:
git:
url: https://github.com/Usama-Azad/flutter_asset_manager.git
copied to clipboard
After adding as a dev dependency run flutter pub get
Usage #
After adding as a dev_dependency in pubspec.yaml, all that is left to do is run the package.
1. Default Directories #
If you don't specify any command-line arguments then it creates default directories
Default directories are audios fonts icons images translations videos.
if globally activated
assetX
copied to clipboard
if dev dependency
dart run flutter_asset_manager
copied to clipboard
OR
flutter pub run flutter_asset_manager
copied to clipboard
2. Specific Directories with --no-default Argument #
If you provide --no-default argument then it don't create default directories
But with --no-default argument you must provide directories name you want to create.
if globally activated
assetX --no-default images icons
copied to clipboard
if dev dependency
dart run flutter_asset_manager --no-default images icons
copied to clipboard
OR
flutter pub run flutter_asset_manager --no-default images icons
copied to clipboard
3. Both Default & Specific Directories #
You can generate both default & specific directories by skipping --no-default argument.
if globally activated
assetX svgs
copied to clipboard
if dev dependency
dart run flutter_asset_manager svgs
copied to clipboard
OR
flutter pub run flutter_asset_manager svgs
copied to clipboard
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.