Kaisel: A Native Dart Router for Flutter with Typed Routes

Kaisel – Routes as Values. Dart 3 Native Router for Flutter

Kaisel: A Native Dart Router for Flutter with Typed Routes

I introduce Kaisel, a native router for Flutter built on Dart 3 that treats routes as values. By using sealed classes and exhaustive switches, the compiler ensures every route is handled, eliminating runtime errors. The navigation stack functions as a simple list of objects, making it fully testable and restorable without code generation or magic strings.

Add a route and the compiler finds every place that must handle it — no runtime unknown route left.
  1. written-beyond

    Ignoring the claude-isms, this could be a godsend from the nightmare that is Go Router.

  2. rhmn_mdov

    Very cool. Nav 2.0 should have been replaced by such a solution as soon as the sealed classes were introduced to dart.

  3. rubiktubik

    I like the ideas of the routing api. Could be my new favourite. Well done!

More from this day

2026-08-01