add-loading-indicator

Track Flutter loading states with context.isWaiting() and mix keys.

7|Updated Jan 27, 2026
One-click install
npx skills add https://github.com/marcglasberg/bloc_superpowers --skill add-loading-indicator
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: add-loading-indicator
Source: https://github.com/marcglasberg/bloc_superpowers/tree/main/.claude/skills/add-loading-indicator
Command: npx skills add https://github.com/marcglasberg/bloc_superpowers --skill add-loading-indicator

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Managing loading states in Flutter widgets is repetitive and error-prone. This skill enables consistent loading indicators by using context.isWaiting() with Cubit state changes.

Core Features & Use Cases

  • Track loading with isWaiting(key) and display spinners, skeletons, or overlays.
  • Support multiple loading states across full screens, inline widgets, per-item loading, and button states.
  • Seamless integration with mix keys in Cubits to coordinate concurrent operations.

Quick Start

In your Cubit, use mix with a key and check context.isWaiting(key) in the widget build to render loading indicators.

Frequently Asked Questions about add-loading-indicator

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I manage loading states in Flutter Cubit apps?

Manage loading states in Flutter Cubit apps by using mix with a unique key in the Cubit and checking context.isWaiting(key) in the UI to render appropriate loading indicators for asynchronous operations.

What is the best way to show multiple loading indicators in Flutter widgets?

The best way to show multiple loading indicators in Flutter is tracking each operation with context.isWaiting(key) using mix keys, supporting full screens, inline widgets, per-item states, and button states simultaneously.

How does context.isWaiting work with Cubit state changes?

Context.isWaiting works by coordinating asynchronous operations through mix keys assigned in the Cubit, allowing the Flutter widget build method to check the key and conditionally render spinners, skeletons, or overlays during state changes.

Can I track per-item loading states in a Flutter list?

Yes, you can track per-item loading states in a Flutter list by assigning unique mix keys to individual item operations in your Cubit and checking context.isWaiting(key) for each specific item in the widget.

Do I need Cubit to display asynchronous loading indicators in Flutter?

Yes, this approach requires Cubit or Bloc driven Flutter apps because it leverages mix keys within the Cubit to coordinate concurrent operations and communicate loading states to the UI layer.

Why is managing loading states in Flutter error-prone?

Managing loading states in Flutter is error-prone because manually tracking asynchronous operations across multiple widgets is repetitive, but using context.isWaiting(key) with mix keys provides consistent, coordinated loading indicators.