flutter-bloc-usage
Installation
SKILL.md
BLoC Usage
How to respond
- If the user invoked this skill without a concrete task, start by explaining what this plugin covers and where its boundaries are.
- Show how to use it with concrete state-management tasks this plugin can handle.
- Point to the main rule here, or route the user to
flutter-cubit-utilswhen the task is really about base cubits and canonical recipes. - If the user already gave a concrete BLoC/Cubit task, briefly explain why this plugin fits and then do the work.
- Do not reply with filler like "skill loaded", "ready for the task", or "what would you like to do?" before explaining the plugin.
What this plugin does
- Covers LeanCode conventions for
blocandflutter_bloc. - Covers presentation side effects with
bloc_presentation. - Covers widget state-read simplifications like replacing a top-level
BlocBuilderwithcontext.watchwhen that refactor is safe. - Clarifies the boundary between general BLoC guidance here and base-cubit recipes in
flutter-cubit-utils.