This repo contains a plethora of examples on how to integrate GoRouter and Riverpod altogether.
These examples are community driven and strive to represent the "best" solution we've found. Every example in here is a simple mock of a login.
BIG THANKS to...
- @[anyone] who has ever contributed in here
- @[the whole riverpod discord community] for the discussions we've enjoyed around this problem
- @rrousselGit for creating this great ecosystem!
I do realize there are a lot of examples on this repo.
After putting a lot of thought, here's a quick guide to help you choose.
- Check the
complete_example
folder for a full example containing the latest versions of riverpod and go router. - Check the
code_gen
for the same example ascomplete_example
, but with the usage ofriverpod_annotation
,freezed
andgo_router_builder
. - Check the
firebase_example
for a basic firebase integration with the two libraries. - Check the
legacy
folder for older, and possibly simpler examples. These examples are "old", but could still be useful. Some are to be discarded entirely, though (WIP).
Please consider starring this mini-repo if you found it useful.
If you didn't, or if you want to contribute in any way, a discussion about improving this example can be found here.