tek_generator 1.1.0 tek_generator: ^1.1.0 copied to clipboard
An resource class generator for Flutter, like Android resource class R.
Resource generator #
Features #
Generate resource class from assets folder.
Getting started #
Before using this generator, your assets folder must have this structure:
<your-project>
├── <assets-folder>/
├── images/ (for images)
├── vectors/ (for vector images or svg)
├── translations/ (for localizations)
├── fonts/ (for fonts)
├── scripts/ (for shell scripts)
├── lib/
├── pubspec.yaml
Usage #
Activate executable:
dart pub global activate tek_generator
cd
to your ptoject folder:
cd <your-project>
Run the generator:
dart pub global run tek_generator:generate -i <assets-folder> -o <output-folder> -p <optional-package>
where:
-i
, optional, is the assets folder, default toassets
.-o
, optional, is the output folder, default toresources
.-p
, optional, is the package name if assets are in a package/module instead of an application.
Contact #
Contact Nguyen Anh Quan (anhquan7826@gmail.com or quan.na@teko.vn) for more information or requests.