asset_generator 1.2.0 copy "asset_generator: ^1.2.0" to clipboard
asset_generator: ^1.2.0 copied to clipboard

A Dart package that generates code for asset paths and pre-caches images, simplifying asset management in Flutter projects.

Use this package as an executable

Install it

You can install the package from the command line:

dart pub global activate asset_generator

Use it

The package has the following executables:

$ generate

Use this package as a library

Depend on it

Run this command:

With Dart:

 $ dart pub add asset_generator

With Flutter:

 $ flutter pub add asset_generator

This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):

dependencies:
  asset_generator: ^1.2.0

Alternatively, your editor might support dart pub get or flutter pub get. Check the docs for your editor to learn more.

Import it

Now in your Dart code, you can use:

import 'package:asset_generator/asset_generator.dart';
9
likes
0
points
32
downloads

Publisher

unverified uploader

Weekly Downloads

A Dart package that generates code for asset paths and pre-caches images, simplifying asset management in Flutter projects.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

analyzer, dart_style, flutter, path, yaml

More

Packages that depend on asset_generator