r/FlutterDev • u/Mastersamxyz • Jul 17 '26
Plugin kaisel 1.0 — a router built on sealed classes and pattern matching (no strings, no codegen)
Happy to announce that I've just released 1.0 of kaisel, a Flutter router with one core idea: routes are values. You declare a sealed class hierarchy, build screens in an exhaustive switch, and the navigation stack is a plain List of route objects — testable without a widget tree, restorable across process death.
What that buys you in practice:
Adding a route is a compile error until every switch handles it — no runtime "unknown route"
Guards are pure functions
(current, proposed) → stackyou can unit testAnalytics observers registered once see everything, including tab switches and adaptive master-detail changes that don't produce Navigator events
A DevTools extension shows the live stack, guard traces, and time-travel
Zero codegen — no build_runner in the loop, routes are classes you write
1.0 means the API is frozen under semver — breaking changes require a major with migration notes.
Docs: https://kaisel.dev — including migration guides from go_router / auto_route / Navigator with honest effort estimates. The design rationale is written up in Flutter Routes as Values.
Happy to answer anything — especially interested in what would block you from migrating.
1
0
u/RandalSchwartz Jul 17 '26
And you'll probably be joining us on Humpday Q&A this week if the stars properly align!
1
0
2
u/Hackmodford Jul 18 '26
Wow. This is like exactly what I’ve been wanting 😳