args_generator 1.4.0
args_generator: ^1.4.0 copied to clipboard
Page Args Generator - A code generator for Flutter page arguments
1.4.0 #
- Requires
analyzer14,build4 andsource_gen4, so the generator runs alongside currentbuild_runner,freezedanddrift_devon Dart 3.10+ SDKs, whereanalyzer7 fails on dot-shorthand syntax in the Flutter SDK. - Raised the minimum Dart SDK to 3.11. Projects on older SDKs keep resolving 1.3.0.
- Migrated every builder and the CLI to the analyzer element model and removed the
deprecated_member_useignores. - Generated
*Argsclasses and imports are unchanged; the aggregated file may list the classes in a different order.
1.3.0 #
- Generated
*Argsclasses implementPageArgsand exposestatic const argSpecs: the key, kind, requirement, default and enum values of every argumenttryParsereads. - Generated
*Argsclasses exposestatic const schema, aPageArgsSchemabindingtryParse,builderandargSpecs, so a router can declare which arguments a route takes and type-check navigation against them. TypeHelperreports thePageArgKindof the type it handles.- Fixed generated class names being prefixed (
class _i2.DetailPageArgs) when a library imported by an annotated page re-exports the generated file. - Requires
args_generator_annotations1.3.0.
1.2.6 #
- Added aggregated CLI generation via
dart run args_generator(nobuild_runnerrequired). - Added CLI options:
-p/--path(multiple),-o/--output,-v/--verbose,--fail-on-error. - Added
--cleanto delete stale*.args.g.dartwhen a library no longer contains@GenerateArgs. - Refactored generation internals: introduced a BuildStep-free emitter used by the CLI while keeping
build_runnersupport intact. - Reduced analyzer deprecation noise: refactored
TypeHelperAPI to work on a lightweightArgFieldmodel instead of deprecated analyzer element types. - Updated internal type utilities to use the new analyzer element model where possible (e.g.
element3/library2). - Added targeted
deprecated_member_useignores in generator/build_runner integration where upstream dependencies still require the legacy element model.
1.1.1 #
- Enhance null and empty checks for Iterable and String type helpers
1.1.0 #
- Page builder replaced by aggregated builder.
1.0.7 #
- Added new aggregated builder. Please see example project for more details.
1.0.4 #
- If the page has a
wrappedRoutemethod, then it will be used in thebuilder.
1.0.2 #
- Added new static method
builderto the generated class for creating the associated widget from arguments.
0.0.9 #
- Added the
args_annotations' package to fix a bug withsource_genthat does not work withFlutter` projects.
0.0.8 #
- Parsing fixed for
nullvalues.
0.0.7 #
- Skip the complex types.
0.0.6 #
- Fix dart:mirrors issue.
0.0.5 #
- Added
superfields to args.
0.0.4 #
SharedPartBuilderwas replaced withPartBuilder.
0.0.3 #
- Updated docs.
0.0.2 #
- Initial version.