flutter_resource_generator 1.1.3
flutter_resource_generator: ^1.1.3 copied to clipboard
Generator resource class automatically by only one commnad based on build runner and dart script, avoid inputing resource file path manually
Use this package as an executable
1. Install it
You can install the package from the command line:
$ pub global activate flutter_resource_generator
2. Use it
The package has the following executables:
$ rgen
Use this package as a library
1. Depend on it
Add this to your package's pubspec.yaml file:
dependencies:
flutter_resource_generator: ^1.1.3
2. Install it
You can install packages from the command line:
with pub:
$ pub get
Alternatively, your editor might support pub get
.
Check the docs for your editor to learn more.
3. Import it
Now in your Dart code, you can use:
import 'package:flutter_resource_generator/builder.dart';
import 'package:flutter_resource_generator/resource_config.dart';
import 'package:flutter_resource_generator/resource_generator.dart';