Search packages, repositories and app categories

Package detailsv3.0.0

zenrouter

A powerful Flutter router with deep linking, web support, type-safe routing, guards, redirects, and zero boilerplate.

AndroidiOSWebmacOSWindowsLinux
30-day downloads
4.5K
Likes
103
Pub points
160

Install package

flutter pub add zenrouter

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

ZenRouter is a powerful, type-safe Flutter routing solution that supports deep linking, web navigation, and platform-agnostic routing across Android, iOS, Web, macOS, Windows, and Linux. It eliminates boilerplate with automatic route generation and offers advanced features like route guards, redirects, and seamless navigation state management. Designed for scalability, it ensures clean, maintainable code by enforcing compile-time safety and reducing runtime errors. Ideal for apps requiring complex navigation patterns or cross-platform consistency.

Use cases

  • Complex app navigation
  • Deep linking support
  • Cross-platform routing
  • Secure route access with guards
  • Dynamic redirects

Key features

  • Type-safe routes
  • Zero boilerplate
  • Deep linking
  • Route guards
  • Redirects
  • Web and multi-platform support

Suitable for

  • Large-scale Flutter applications
  • Apps needing deep links
  • Developers prioritizing code safety
  • Teams using structured navigation
  • Projects targeting multiple platforms

Considerations

  • Requires understanding of route configuration
  • May need additional setup for custom navigation logic
  • Best suited for apps with defined navigation structure

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

ZenRouter Logo

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

Packages

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.

License

Apache 2.0. LICENSE

definev

Categories

Dependencies

Dependency list 2 items

Source repository

Projects using this package

No data available yet.