Skip to content

Instantly share code, notes, and snippets.

View developerjamiu's full-sized avatar
💙

Jamiu Okanlawon developerjamiu

💙
View GitHub Profile
@Mastersam07
Mastersam07 / routing.md
Last active June 28, 2026 09:51
Flutter Routing Is a Pre-Dart-3 Design

Routes as Values

Most Flutter routers were architected before Dart 3 had sealed types and pattern matching. One has been redesigned around them. Here's the value-oriented shape no one has built yet.


The thesis

Flutter's two most-adopted routing libraries — go_router and auto_route — were architected in a world before Dart had sealed classes, exhaustive pattern matching, and records. Both shipped their core API in 2021–2022, and both still organize themselves around the same primitive: a string path, parsed at runtime, with type safety bolted on via build_runner.