HeadlinesBriefing favicon HeadlinesBriefing.com

Kaisel: Dart 3 Native Router for Flutter

Hacker News •
×

Kaisel is a Dart 3 native router for Flutter that reimagines navigation as values. Developers install it via `flutter pub add kaisel` and use sealed classes with exhaustive switch statements to define typed routes. This ensures compile-time safety, eliminating runtime 'unknown route' errors.

The navigation stack is a List of route objects, enabling push/pop/set operations testable without a widget tree and restorable after process death. A single Navigator Observer captures all navigation events, including tab switches and adaptive in-place changes. With zero codegen, no build_runner, or magic strings, routes are plain Dart classes.

The getting started guide promises typed route navigation in minutes. Kaisel’s value-based approach simplifies complex navigation flows while maintaining strict type safety and testability.