Member-only story

Typed Routes With Go Router And Riverpod In Flutter Apps

Fred Grott
5 min readMar 4, 2023

--

It’s not just to have declarative ways to specify the navigation logic, but to also have type-safe routes so that we get compile time errors to fix rather than run into run-time errors that stop the app for the user of the app. What is a further benefit of the Go Router and Riverpod combination is that everything can be code-generated for ease of implementation.

Let me show you how easy this is.

What I Am Using

These are the packages that are being used:

Riverpod

--

--

Fred Grott
Fred Grott

Responses (1)