assetx 0.1.1 copy "assetx: ^0.1.1" to clipboard
assetx: ^0.1.1 copied to clipboard

Type-safe asset mapping for Flutter. Generates nested Dart code for easy asset access.

Use this package as an executable

Install it

You can install the package from the command line:

dart pub global activate assetx

Use it

The package has the following executables:

$ assetx

Use this package as a library

Depend on it

Run this command:

With Flutter:

 $ flutter pub add assetx

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

dependencies:
  assetx: ^0.1.1

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

Import it

Now in your Dart code, you can use:

import 'package:assetx/assetx.dart';
0
likes
155
points
87
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Type-safe asset mapping for Flutter. Generates nested Dart code for easy asset access.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

flutter, json_annotation, path, yaml

More

Packages that depend on assetx