Last updated:
0 purchases
asset builder
Create Code for asset files addresses
Installation #
$dart pub global activate asset_builder // this will enable the `build_assets` cli command
or alternatively for each project:
$dart pub add asset_builder --dev // this way in order to use the cli you have to call `dart run asset_builder` instead of `build_assets`
copied to clipboard
Usage #
# if activated globally:
build_assets -o lib/app/assets/assets.dart -f
# if using as a dev dependency:
dart run asset_builder -o lib/app/assets/assets.dart -f
copied to clipboard
// then in code:
'assets/icons/logo.svg' => $assets.icons.logoSvg
copied to clipboard
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.