convert-cubit
CommunityConvert a Cubit to mix() for cleaner loading.
Authormarcglasberg
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Convert manual Cubit loading and error handling into mix-based flows to simplify state management and reduce boilerplate.
Core Features & Use Cases
- Wraps Cubit methods with mix() to eliminate explicit loading/error emissions.
- Removes isLoading and errorMessage/state fields from state and updates widgets to use context.isWaiting() and context.isFailed().
- Supports converting multiple methods across a Cubit, with options for per-method keys and consistent error handling via UserException.
Quick Start
Identify a Cubit to convert and wrap targeted methods with mix(), then remove loading/error boilerplate and refactor state and widgets accordingly.
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: convert-cubit Download link: https://github.com/marcglasberg/bloc_superpowers/archive/main.zip#convert-cubit 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.