Welcome to the GoRouter Redirection Examples repository. This project showcases various concepts of redirection in Flutter using GoRouter and Riverpod.
Each branch in this repository demonstrates a specific redirection concept using GoRouter and Riverpod. Below is a list of available branches and their respective topics:
- main: The main branch containing the base setup of the project.
- basic_redirection: Demonstrates basic redirection techniques.
- conditional_redirect_with_guards: Showcases conditional redirection with guards.
- nested_routes_with_auth: Illustrates nested routes with authentication.
- role_based_redirection: Explains role-based redirection.
- advanced_redirection_with_state_restoration: Covers advanced redirection concepts with state restoration.
- riverpod_project_basic_setup: The branch consisting of the intial Riverpod Code
- riverpod_state_and_state_notifier_providers: Setup Basic State Provider and State Notifier Provider
- riverpod_future_stream_change_provider: Future Provider and Stream Provider using JsonPlaceHolder
- riverpod_combining_providers: Here we look at how to combine various providers to create a complex application.
- riverpod_parameters: As of now I have covered
family
,autoDispose
andkeepAlive
.
To get started with any of the concepts, switch to the respective branch using the following command:
git checkout <branch_name>
Ensure you have Flutter and Dart installed on your machine. You can install Flutter by following the official installation guide.