bloc-patterns
CommunityStreamline Flutter state management with BLoC/Cubit.
AuthorAdhamHashim
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill addresses the complexity of managing state in Flutter applications, providing standardized patterns and reusable components for efficient development and maintainability.
Core Features & Use Cases
- Standardized State Management: Implements
AsyncCubitfor API calls andAsyncStatefor managing loading, success, and error states. - Efficient UI Updates: Utilizes
AsyncBlocBuilderandAsyncSliverBlocBuilderfor seamless UI rendering based on state changes. - Local Data Manipulation: Enforces non-negotiable rules for local state updates after CRUD operations to prevent unnecessary data refetches.
- Action Handling: Employs
BlocListenerfor managing side effects like showing snackbars or navigation. - Pagination: Integrates
PaginatedCubitandPaginatedListWidgetfor handling infinite scrolling lists. - Use Case: Develop a product listing screen where data is fetched asynchronously, with clear loading, error, and empty states, and where adding or deleting a product updates the list instantly without a full refresh.
Quick Start
Use the bloc-patterns skill to create a new cubit for fetching products that extends AsyncCubit and handles loading, success, and error states.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: bloc-patterns Download link: https://github.com/AdhamHashim/Flutter_Base/archive/main.zip#bloc-patterns Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.