This repository contains three Flutter projects, each demonstrating a different type of state management approach. The projects included are:
-
Provider Demo: A Flutter app demonstrating state management using the Provider package.
-
BLoC Demo: A Flutter app demonstrating state management using the BLoC (Business Logic Component) pattern with the
flutter_bloc
package. -
Riverpod Demo: A Flutter app demonstrating state management using the Riverpod package, a modern and simple alternative to Provider.
- This project showcases how to use the Provider package for state management in Flutter.
- Features a simple counter app that allows you to increment and decrement a counter value.
- Demonstrates how to create and use a ChangeNotifier with Provider.
Libraries used:
- Provider: For state management.
- This project illustrates state management using the BLoC pattern in Flutter.
- Features a counter app with increment and decrement buttons.
- Utilizes the
flutter_bloc
package for managing the business logic.
Libraries used:
- flutter_bloc: For BLoC-based state management.
- This project showcases state management using the Riverpod package, a more modern and streamlined alternative to Provider.
- Features a counter app with increment and decrement buttons.
- Demonstrates how to use Riverpod providers and StateNotifier for managing state.
Libraries used:
- riverpod: For state management.
To run each of the projects locally, follow the instructions in their respective README files in the project directories: