Skip to content

Hadi-Alsinan/state-management

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Flutter State Management Demos

This repository contains three Flutter projects, each demonstrating a different type of state management approach. The projects included are:

  1. Provider Demo: A Flutter app demonstrating state management using the Provider package.

  2. BLoC Demo: A Flutter app demonstrating state management using the BLoC (Business Logic Component) pattern with the flutter_bloc package.

  3. Riverpod Demo: A Flutter app demonstrating state management using the Riverpod package, a modern and simple alternative to Provider.

Project Descriptions

Provider Demo

  • 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:

BLoC Demo

  • 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:

Riverpod Demo

  • 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:

Getting Started

To run each of the projects locally, follow the instructions in their respective README files in the project directories:

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published