flutternaut_generator 0.0.3
flutternaut_generator: ^0.0.3 copied to clipboard
CLI tool that scans Flutter projects for Flutternaut widgets and extracts labels into a structured JSON file for AI test authoring.
0.0.3 #
- Resolve
@FlutternautViewarguments that use static const references (e.g.AppRoutes.trip). - Two-pass analysis: first collects all
static conststring declarations across the project, then resolves annotation arguments against them. - Falls back to source text when a const reference cannot be resolved.
0.0.2 #
- Fix compatibility with analyzer 7.x+ (
NamedType.name→name2rename cycle). - Widen analyzer constraint to
>=6.0.0 <11.0.0to support Flutter 3.29.4 and newer. - Add
viewfield to generated output from@FlutternautViewclass annotation. - Automatically propagate view from StatefulWidget to its State class.
- Change dynamic label placeholder from
{n}to{index}to match engine's${index}variable.
0.0.1 #
- Initial release.
- AST-based scanner for Flutternaut widget usages.
- Extracts labels, types, descriptions, and screen groupings.
- Dynamic label detection with pattern rewriting.
- CLI with configurable output path.