Skip to content

haaris94/riverpod_todo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Riverpod Todo App Tutorial

A demo Todo application built with Flutter and Riverpod, demonstrating real-world state management patterns and best practices. This repository accompanies the comprehensive tutorial series on Master Riverpod in Flutter.

🌟 Features

  • Complete CRUD operations with optimistic updates
  • Local persistence using Hive
  • Clean Architecture with Repository pattern
  • Advanced error handling and retry logic
  • Pull-to-refresh functionality
  • Filter todos by status (All, Active, Completed)
  • Type-safe state management with code generation

🚀 Getting Started

  1. Clone the repository
git clone https://github.com/haaris94/riverpod_todo.git
  1. Install dependencies
flutter pub get
  1. Run code generation
dart run build_runner build
  1. Run the app
flutter run

📚 Tutorial Series

This repository is part of a comprehensive Riverpod tutorial series:

  1. Part 1: Master Riverpod - Core concepts and fundamentals
  2. Part 2: Building a Todo App - Practical implementation

🏗️ Project Structure

lib/
├── data/
│   ├── model/
│   │   └── todo.dart
│   └── repositories/
│       └── todos_repository.dart
├── features/
│   └── todos/
│       ├── providers/
│       │   └── todos_provider.dart
│       └── view/
│           └── todos_screen.dart
└── main.dart

💡 Key Concepts Demonstrated

  • Proper state management with AsyncNotifierProvider
  • Repository pattern implementation
  • Error handling and loading states
  • Optimistic updates for better UX
  • Code organization and architecture
  • Type-safe code generation

⭐ Support

If you found this tutorial helpful, consider giving it a star! It helps others discover this resource and motivates me to create more educational content.

📝 License

This project is licensed under the MIT License - see the full license text for details. Copyright (c) 2024-present Ayaan Haaris.

About

Simple Todos app created using Riverpod

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages