Skip to content

medz/unrouter

Repository files navigation

unrouter

⍨ Declarative, composable router for Dart/Flutter ecosystem apps.

What's Unrouter

Unrouter provides nested route trees, named navigation, guards, route params, query helpers, shared history APIs, and adapter-specific rendering for both widget apps and terminal UIs.

Packages

Package Version Best for Notes
unrouter pub Most apps Main package that exposes flutter.dart, nocterm.dart, and shared core/history APIs.
flutter_unrouter pub Direct Flutter integration MaterialApp.router, Outlet, Link, and route hooks.
nocterm_unrouter pub Terminal apps built with Nocterm Nested routing with RouterView and Outlet.
unrouter_core pub Shared routing logic Matching, guards, params, query helpers, and history APIs.

Quick Start

Install the main package:

dart pub add unrouter

Use the Flutter entrypoint from the main package:

import 'package:unrouter/flutter.dart';

Use the Nocterm entrypoint in terminal apps:

import 'package:unrouter/nocterm.dart';

Use the shared core and history APIs directly when you are building on top of the routing engine:

import 'package:unrouter/unrouter.dart';

Examples

About

⍨ Declarative, composable router for Dart/Flutter ecosystem apps.

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Packages

 
 
 

Contributors

Languages