tek_generator 1.4.0 tek_generator: ^1.4.0 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 tek_generator
Use it
The package has the following executables:
$ generate
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add tek_generator
With Flutter:
$ flutter pub add tek_generator
This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get
):
dependencies:
tek_generator: ^1.4.0
Alternatively, your editor might support dart pub get
or flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:tek_generator/color_generator.dart';
import 'package:tek_generator/config_generator.dart';
import 'package:tek_generator/font_generator.dart';
import 'package:tek_generator/image_generator.dart';
import 'package:tek_generator/root_generator.dart';
import 'package:tek_generator/script_generator.dart';
import 'package:tek_generator/string_generator.dart';
import 'package:tek_generator/value_generator.dart';
import 'package:tek_generator/vector_generator.dart';