This project demonstrates how to use Riverpod and Flutter Hooks for state management in a Flutter application. It includes examples of fetching data with Dio, managing state with providers, and performing data mutations.
- Dio client setup for HTTP requests
- Repository pattern for data management
- Riverpod for state management
- Flutter Hooks for functional component structure
- Examples of fetching and mutating data
- Clone the repository:
git clone https://github.com/gonciuu/Riverpod-Example.git
- Install dependencies:
flutter pub get
- Run code generation:
dart run build_runner build
- Run the app:
flutter run
- The project includes examples of fetching data from an API using Dio and Riverpod.
- It also shows how to manage state and perform mutations using providers and state notifiers.
For a detailed tutorial and explanation, read the full article on Medium.