v2.0.3
zenrouter
一個功能強大的 Flutter 路由器,支援深度連結、Web 支援、類型安全路由、守衛、重導向和零樣板程式碼。
89喜歡 2.2萬近 30 天下載160Pub 分數
AndroidiOSWebmacOSWindowsLinux
適用於所有導航模式的終極 Flutter/Dart 前端路由器
以下為英文專案原文快照,最新內容請造訪 GitHub。
Navigation as a typed graph.
pub package Test Codecov - zenrouter Codecov - zenrouter_core
Need deep linking or a browser URL?
│
├─ YES → Coordinator (prefer RouteManifest + RouteBinding)
│
└─ NO → state-driven stack? → Declarative
otherwise → Imperative (NavigationPath)
zenrouter README · Getting Started
| Package | Role |
|---|---|
zenrouter |
Flutter Coordinator, NavigationStack, restoration |
zenrouter_core |
RouteTarget, CoordinatorCore, paths, mixins, RouteManifest |
zenrouter_devtools |
Overlay, Graph tab |
zenrouter_file_generator |
File-based codegen |
iOS, Android, Web, macOS, Windows, Linux
3.0 is a prerelease for early testers:
dependencies:
zenrouter: ^3.0.0-beta.1
flutter pub add zenrouter still resolves 2.x. 2.x coordinators that
extend Coordinator still compile. See
Migrating from 2.x.
Apache 2.0. LICENSE