All skills
Skillintermediate
create widget
Create a Flutter widget with proper state management and Material/Cupertino design.
Claude Code Knowledge Pack7/10/2026
Overview
Create a Flutter widget with proper state management and Material/Cupertino design.
Steps
- Define the widget requirements:
- Choose the widget type:
- Implement the widget:
- Apply theming:
- Add responsiveness:
- Add animations if needed:
- Write widget tests using testWidgets.
Format
Widget: <name>
Type: <Stateless|Stateful>
Parameters:
- <name>: <type> (<required|optional>)
Rules
- Use const constructors whenever possible.
- Follow Flutter naming conventions (PascalCase for widgets).
- Extract complex build methods into separate widgets.