Skip to content

Myrat204209/riverpod_study

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🌊 RiverPod Learning App

A hands-on project to master Riverpod—Flutter's modern, minimalist state management solution.


Why Riverpod? 🚀

As a developer who previously worked with BLoC, I found Riverpod to be a game-changer for small to mid-sized apps. Here's why:

  • Less Boilerplate 🔥
    No more BlocProvider, BlocBuilder, or excessive event classes. Riverpod simplifies state logic with minimal code.

  • Faster Development
    Ideal for rapid prototyping and small projects. Focus on features, not boilerplate.

  • Scalable & Flexible 📏
    Effortlessly manage app-wide state, async data, and dependency injection with providers.


What This App Demonstrates 📱

  • State Management Basics
    Simple counter, theme toggling, and form validation.
  • Async Operations
    Fetching data from APIs with FutureProvider and StreamProvider.
  • Dependency Injection
    Managing services and repositories with Provider.

Why Not BLoC? 🤔

While BLoC excels in large, complex apps, Riverpod shines in simplicity:

  • No Streams/Events Overhead
  • No Separate Business Logic Layer
  • Built-in Testing Support

Getting Started 🛠️

git clone https://github.com/Myrat204209/riverpod_study.git
cd riverpod-learning
flutter run

flutter pub add hooks_riverpod
flutter pub add flutter_hooks
flutter pub add riverpod_annotation
flutter pub add dev:riverpod_generator
flutter pub add dev:build_runner
flutter pub add dev:custom_lint
flutter pub add dev:riverpod_lint
flutter pub add freezed_annotation
flutter pub add dev:build_runner
flutter pub add dev:freezed
flutter pub add json_annotation
flutter pub add dev:json_serializable

dart run build_runner watch -d -v

Built with ❤️ and Flutter | PRs & feedback welcome!


About

An app for practicing and understanding the from basic to advanced elements in Riverpod State management.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages