Skip to content

This project is for understanding the concept of Bloc the state management with Hive the local storage.

Notifications You must be signed in to change notification settings

taksh30/bloc-hive-tutorial

Repository files navigation

bloc_hive_tutorial

This project is a Todo application built using Flutter with Bloc for state management and Hive for local storage. It demonstrates how to efficiently manage application state and data persistence in a clean and scalable way.

Project Structure The codebase is organized with a clear separation of concerns, following Clean Architecture principles. Here’s an overview: Features: Contains all business logic and UI related to the Todo feature. Data Layer: Implements the Hive repository for CRUD operations on todo items. Domain Layer: Contains entities and repository interfaces, making the app easily extensible. Presentation Layer: Manages the user interface and state using Bloc and Cubit.

Key Technologies Bloc: A predictable state management library that helps to implement the Business Logic Component (BLoC) pattern. The app's state flows between different states (initial, loading, loaded, error), making it easy to manage and test. Hive: A lightweight, NoSQL, key-value database solution, ideal for local storage on Flutter. Here, Hive handles the persistent storage of todo items and offers quick read/write capabilities.

project_structure cubit hive

Getting Started

This project is a starting point for a Flutter application.

A few resources to get you started if this is your first Flutter project:

For help getting started with Flutter development, view the online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.

About

This project is for understanding the concept of Bloc the state management with Hive the local storage.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published