flutter_navigation_generator 2.2.0 copy "flutter_navigation_generator: ^2.2.0" to clipboard
flutter_navigation_generator: ^2.2.0 copied to clipboard

Generate your Flutter navigator by annotating your screen widgets

2.2.0 (2025-05-24) #

WARNING: This version is using source_gen 2.0.0 which is not yet migrated to analyzers new Element2. Meaning we are using a deprecated API. Everything should work as before though.

  • Upgraded to analyze 7.0.0

2.1.0 (2024-12-31) #

  • Added @FlutterRouteField annotation to specify fields with the following options:
    • ignore: Defaults to false (except for Key? key field), excludes this field from the goTo method
    • addToJson: default true, add this field to the json serialization, only useful for web, use this to add cached values, but prevent the user from overriding them
    • queryName: default null, use this to specify the query parameter name, if not specified, the field name is used
  • Added ignoreKeysByDefault to @FlutterNavigator to override default behaviour of ignoring keys
  • Improved workings of defaultValues so they are used even if not included in query parameters. NOTE: Default values use the default value of the field, but cannot be from a class that is not included in the generated file

2.0.4 (2024-12-31) #

  • Fixed goBackTo not working with web parameters
  • Added includeQueryParameters to FlutterNavigator and FlutterRoute to include query parameters in the route. Default is [IncludeQueryParametersType.onlyOnWeb] (which differs from before, which was always)
  • Added [NavigationType.pushNotNamed] to push the new route without using named. Use this for routes that are not navigationable by the user on web, for example dialogs, bottom sheets, etc. that use custom transitions

2.0.3 (2024-10-21) #

  • Fixed a nullability issue

2.0.2 (2024-07-24) #

  • Added support for enum arguments

2.0.1 (2024-07-24) #

  • Fixed an issue when you don't use guards, the import is not added, but the methods are causing an error

2.0.0 (2024-07-21) #

  • Added support for web parameters as query parameters and url path parameters
  • Added support for methodName
  • Added a package (flutter_navigation_generator_animations) with NativeRouteAnimation to animate between pages in a native way (Android scales, iOS uses CupertinoPageTransition, web doesn't animate, other platforms use FadeTransition)
  • Added unknownRoute to handle unknown routes
  • Added guards to prevent navigation under certain conditions
  • Added defaultGuards to apply to all routes where no guards are specified

1.0.4+1 (2024-03-06) #

  • Fixed issue with settings.arguments error in restoration

1.0.3 (2023-12-04) #

  • Fixed issue with FlutterNavigator PageType overriding FlutterRoute PageType

1.0.2 (2023-11-14) #

  • Added restorablePush, restorablePopAndPush, restorablePushReplacement and restorablePushAndReplaceAll methods

1.0.1 (2023-10-30) #

  • Fixed issue with popAndPush

1.0.0 (2023-06-23) #

  • Removed dependencies on Get and use Flutter navigation