resources_generator 1.0.4 copy "resources_generator: ^1.0.4" to clipboard
resources_generator: ^1.0.4 copied to clipboard

An resource class generator for Flutter, like Android resource class R.

Use this package as an executable

Install it

You can install the package from the command line:

dart pub global activate resources_generator

Use it

The package has the following executables:

$ generate
$ monitor

Use this package as a library

Depend on it

Run this command:

With Dart:

 $ dart pub add resources_generator

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

dependencies:
  resources_generator: ^1.0.4

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:resources_generator/generators/color_generator.dart';
import 'package:resources_generator/generators/config_generator.dart';
import 'package:resources_generator/generators/font_generator.dart';
import 'package:resources_generator/generators/image_generator.dart';
import 'package:resources_generator/generators/pubspec_generator.dart';
import 'package:resources_generator/generators/raw_generator.dart';
import 'package:resources_generator/generators/root_generator.dart';
import 'package:resources_generator/generators/script_generator.dart';
import 'package:resources_generator/generators/string_generator.dart';
import 'package:resources_generator/generators/value_generator.dart';
import 'package:resources_generator/generators/vector_generator.dart';
import 'package:resources_generator/process.dart';
import 'package:resources_generator/util/arguments.dart';
import 'package:resources_generator/util/constants.dart';
import 'package:resources_generator/util/dart_keywords.dart';
import 'package:resources_generator/util/extensions/file_ext.dart';
import 'package:resources_generator/util/extensions/scope_ext.dart';
import 'package:resources_generator/util/extensions/yaml_editor_ext.dart';
import 'package:resources_generator/util/filename_util.dart';
import 'package:resources_generator/util/font_util.dart';
import 'package:resources_generator/util/logger.dart';
import 'package:resources_generator/util/path_util.dart';
import 'package:resources_generator/util/sort_algorithm.dart';
0
likes
0
pub points
0%
popularity

Publisher

unverified uploader

An resource class generator for Flutter, like Android resource class R.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

collection, path, rxdart, watcher, yaml, yaml_edit

More

Packages that depend on resources_generator