genui_gen 0.4.0
genui_gen: ^0.4.0 copied to clipboard
Annotations and runtime helpers to generate genui CatalogItems from your own Flutter widgets. Derive the schema from the constructor so the catalog can never drift.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add genui_genThis will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):
dependencies:
genui_gen: ^0.4.0Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:genui_gen/genui_gen.dart';