zenrouter_file_generator 1.0.0
zenrouter_file_generator: ^1.0.0 copied to clipboard
A code generator for file-based routing in Flutter using zenrouter. Generate type-safe routes from your file/directory structure, similar to Next.js or Nuxt.js.
1.0.0 #
- BREAKING: Requires
zenrouter: ^1.0.0andzenrouter_file_annotation: ^1.0.0 - Stable release: Production-ready file-based routing generator
- Generates code compatible with zenrouter 1.0.0 features
0.4.14 #
- Fix: Upgrade to
analyzerto^9.0.0
0.4.13 #
- Docs: Add "Customizing the Coordinator" section to README
- Docs: Add Table of Contents to README
0.4.12 #
- Feat: Add
super.pathsto ensurerootalways added in thepathsgetter (Thanks @mrgnhnt96)
0.4.11 #
New Features #
- NavContext extension: Auto-generated extension on route base class (e.g.,
AppRoute) providing convenient navigation methods directly from route instances:route.navigate(context)- Navigate to the routeroute.push<T>(context)- Push the route and optionally return a resultroute.replace(context)- Replace the current routeroute.recover(context)- Recover to the route
0.4.10 #
New Features #
- CoordinatorProvider: Auto-generated
InheritedWidgetprovider for accessing the coordinator from the widget tree viacontext.appCoordinator - layoutBuilder override: The generated Coordinator now includes a
layoutBuilderoverride that wraps layouts with the provider - deferredImport in
@ZenCoordinator: Configure global deferred import via annotation, overridingbuild.yaml - routeBasePath in
@ZenCoordinator: Import a custom base route class from a specified path instead of generating it - outputFile config: New
build.yamloption to customize the output filename (default:routes.zen.dart)
Bug Fixes #
- Fixed file processing order: Read
_coordinator.dartdirectly first before processing routes to ensure correct configuration
0.4.9 #
- Refactor: Use shared code generation utilities (
LayoutCodeGenerator,RouteCodeGenerator) fromzenrouter_file_annotation
0.4.8 #
- Docs: Update README
0.4.7 #
- Docs: Update README and add screenshots
0.4.6 #
- Downgrade
analyzerto^8.0.0for compatibility.
0.4.5 #
- Support new
RouteQueryParametersand new dot notation flavor in naming convention.
0.4.1 #
- Docs: Improve documentation and update outdated examples
- Bump zenrouter_file_annotation to 0.4.0
0.4.0 #
- BREAKING CHANGE: Upgraded generated code to use
zenrouter0.4.0+ constructor syntax (NavigationPath.createWith/IndexedStackPath.createWith). Requireszenrouter: ^0.4.0.
0.3.1 #
- NEW FEATURE: Add ability to lazy load routes using the
deferredImportoption in the@ZenCoordinatorannotation - PERFORMANCE IMPROVEMENTS: Performance improvements (30-40% faster generation, 25-35% lower memory) and automatic code formatting with
dart_style
0.3.0 #
- Bump version to 0.3.0
- Add support for catch-all parameters ([...slugs], [...ids], etc) in routes, including
List<String>type handling and updated route specificity sorting.
0.2.3 #
- Format files
0.2.2 #
Bug Fixes #
- Update the debug label correctly for the generated Path in the Coordinator
- Update README.md
0.2.1 #
0.2.0 #
New Features #
- Route Groups
(name): Wrap routes in a layout without adding the folder name to the URL path- Folders named with parentheses like
(auth)create route groups - Routes inside
(auth)/login.dartgenerate URL/login(not/(auth)/login) - Routes are still wrapped by the
_layout.dartin that folder - Useful for grouping auth flows, marketing pages, or applying shared styling
- Folders named with parentheses like
0.1.0 #
- Initial release of zenrouter_file_generator with file-based routing support for Flutter.