flutter_resource_generator 1.1.3 copy "flutter_resource_generator: ^1.1.3" to clipboard
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

Install it

You can install the package from the command line:

dart pub global activate flutter_resource_generator

Use it

The package has the following executables:

$ rgen

Use this package as a library

Depend on it

Run this command:

With Dart:

 $ dart pub add flutter_resource_generator

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

dependencies:
  flutter_resource_generator: ^1.1.3

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

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';
7
likes
40
pub points
0%
popularity

Publisher

unverified uploader

Generator resource class automatically by only one commnad based on build runner and dart script, avoid inputing resource file path manually

Repository (GitHub)
View/report issues

License

MIT (LICENSE)

Dependencies

analyzer, args, build, build_runner, collection, path, source_gen

More

Packages that depend on flutter_resource_generator