resources_generator 1.0.8 resources_generator: ^1.0.8 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.8
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';
import 'package:resources_generator/util/writer.dart';