flutter_navkit 1.0.0
flutter_navkit: ^1.0.0 copied to clipboard
A powerful navigation toolkit for Flutter with type-safe routing, automatic route generation, and comprehensive navigation observability.
Changelog #
All notable changes to this project will be documented in this file.
[1.0.0] #
🎉 Initial Release #
✨ Features
- Added
NavkitMaterialApp— a drop-in replacement forMaterialAppwith full NavKit integration. - Implemented
@NavkitRouteannotation with automatic route generation. - Generated route constants via build_runner with IDE autocomplete support.
- Added type-safe named navigation (
context.toNamed,context.replaceWithNamed, etc.). - Added direct widget navigation (
context.to,context.replaceWith, etc.). - Included shared navigation helpers:
- Pop utilities (
back,backMultiple,backUntil,maybeBack) - UI helpers (bottom sheets, dialogs, snackbars)
- Argument access (
hasArguments,arguments<T>)
- Pop utilities (
- Introduced animated transitions:
- Fade
- Slide
- Scale
- Custom transition builder
- Added full navigation observer with:
- Push/pop/replace/remove logging
- Route stack visualization
- Route existence helpers (
hasRoute,routes, etc.)
- Added route validation & error handling.
- Introduced
navkitRoutessystem for registering annotated widgets. - Fully supports all MaterialApp parameters.
- Added developer-friendly stack debug mode (
observeWithStack).
🛠️ Developer Tooling
- Added code generator with
.navkit.dartoutputs. - Added build.yaml builder configuration.
- Recommended
.gitignorerules for generated files.
📚 Documentation
- Comprehensive README with setup steps, code examples, and best practices.
- Added quick-start guide and usage patterns.
- Added troubleshooting section and examples.