Skip to main content

args_generator 1.4.0 copy "args_generator: ^1.4.0" to clipboard
args_generator: ^1.4.0 copied to clipboard

Page Args Generator - A code generator for Flutter page arguments

1.4.0 #

  • Requires analyzer 14, build 4 and source_gen 4, so the generator runs alongside current build_runner, freezed and drift_dev on Dart 3.10+ SDKs, where analyzer 7 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_use ignores.
  • Generated *Args classes and imports are unchanged; the aggregated file may list the classes in a different order.

1.3.0 #

  • Generated *Args classes implement PageArgs and expose static const argSpecs: the key, kind, requirement, default and enum values of every argument tryParse reads.
  • Generated *Args classes expose static const schema, a PageArgsSchema binding tryParse, builder and argSpecs, so a router can declare which arguments a route takes and type-check navigation against them.
  • TypeHelper reports the PageArgKind of 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_annotations 1.3.0.

1.2.6 #

  • Added aggregated CLI generation via dart run args_generator (no build_runner required).
  • Added CLI options: -p/--path (multiple), -o/--output, -v/--verbose, --fail-on-error.
  • Added --clean to delete stale *.args.g.dart when a library no longer contains @GenerateArgs.
  • Refactored generation internals: introduced a BuildStep-free emitter used by the CLI while keeping build_runner support intact.
  • Reduced analyzer deprecation noise: refactored TypeHelper API to work on a lightweight ArgField model 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_use ignores 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 wrappedRoute method, then it will be used in the builder.

1.0.2 #

  • Added new static method builder to the generated class for creating the associated widget from arguments.

0.0.9 #

  • Added the args_annotations' package to fix a bug with source_genthat does not work withFlutter` projects.

0.0.8 #

  • Parsing fixed for null values.

0.0.7 #

  • Skip the complex types.

0.0.6 #

  • Fix dart:mirrors issue.

0.0.5 #

  • Added super fields to args.

0.0.4 #

  • SharedPartBuilder was replaced with PartBuilder.

0.0.3 #

  • Updated docs.

0.0.2 #

  • Initial version.
4
likes
150
points
334
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Page Args Generator - A code generator for Flutter page arguments

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

analyzer, args, args_generator_annotations, build, collection, glob, meta, source_gen

More

Packages that depend on args_generator