Claude Code Flutter Skill for Riverpod AsyncValue Lists
Put asynchronous data in a Riverpod provider and render distinct loading, error, and data states from AsyncValue.
中文Install in Claude Code
Use Claude Code with the pinned skill and a Flutter project that uses Riverpod. Run verification with the project's Flutter test setup.
- Get the complete `skills/flutter` directory from the pinned revision.
- Copy it into the target project's `.claude/skills/` and confirm `.claude/skills/flutter/SKILL.md`. Start Claude Code at the project root and describe a task matching the skill's purpose.
Example task
A fictional bus-route list fails once and returns one route on retry. Describe how AsyncValue represents the two requests.What to check
The screen shows loading, an error with retry, a fresh loading state, then one route. The same provider supplies each state.
Original SKILL.md on GitHub · Updated
Frequently asked question
Can an error be shown as an empty list?
Distinguish failure from a successful empty result. Offer retry for the error and explain when no routes exist.