flutter_codegen
Generate Flutter/Dart boilerplate for widgets, BLoC, Riverpod, tests, freezed, and repositories from a template and name, with optional typed properties, to accelerate project scaffolding.
Instructions
Generate Flutter/Dart boilerplate code. Supports StatelessWidget, StatefulWidget, BLoC, Riverpod, tests, freezed, and repository patterns.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Name for the generated class/widget (e.g., 'UserProfile', 'ShoppingCart') | |
| props | No | Optional properties with types (e.g., ['String name', 'int age', 'bool isActive']) | |
| template | Yes | Template type: stateless, stateful, bloc, riverpod, test, freezed, repository |