elmm-programing/opencode/flutter-ui

Claude Code and agent skill by elmm-programing/opencode

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

UI Performance, Design Tokens, Reusable Components & Adaptive Design

Install

npx vskill@latest install elmm-programing/opencode/flutter-ui

SKILL.md

The same SKILL.md was published earlier as elmm-programing/opencode/flutter-ui.

1. Performance & Rendering

  • Const-First: Every widget that can be const MUST be const.
  • Lazy Rendering: Use SliverList.builder or SliverGrid.builder for lists > 10 items.
  • Repaint Boundaries: Wrap complex animations in RepaintBoundary.
  • Isolate Parsing: Use compute() or Isolate for JSON > 1MB.
  • BuildContext Safety: Check mounted before using context across async gaps.

2. Design Tokens (Theming)

Use AppColors, AppSpacing, AppRadius, and AppTypography. NEVER hardcode raw values.

  • Colors: Use context.colorScheme.primary or AppColors. Support light/dark modes.
  • Spacing: Use AppSpacing.sm (8), AppSpacing.md (16), etc. Use SizedBox for gaps.
  • Radius: Use AppRadius.md (12) for consistent rounding.
  • Typography: Use context.textTheme.bodyMedium. Support text scaling.

3. Reusable Components

  • Single Responsibility: Each component has one clear purpose.
  • Parameterization: Expose parameters for customization.
  • Complexity: Extract widgets or code blocks used multiple times into core/views/widgets.
  • Keys: Assign Key('feature_action_id') to interactive widgets for test access.

4. Widget & Interaction Patterns

  • Extraction: STRICTLY prohibit private _build*() methods. Extract into separate widget classes.
  • Slivers: Prefer CustomScrollView with Slivers for non-trivial scrollable layouts.
  • FAB: Use Floating Action Buttons for primary positive actions (Add, Create).
  • Scroll Padding: Add dynamic bottom padding when a FAB or BottomBar is present to prevent overlap.
  • Sheets vs Screens: Prefer full Scaffold screens over ModalBottomSheet for complex forms.

5. Adaptive & Responsive Design

  • Mobile First: Design for mobile, then adapt for tablet (600-840) and desktop (>840).
  • Measure & Branch: Use MediaQuery.sizeOf(context) for layout decisions; LayoutBuilder for widget constraints.
  • Rules: Never lock orientation. Support keyboard navigation and hover effects.

6. UI States & Accessibility

  • States: Always handle Loading, Error, and Empty states with clear messaging.
  • Accessibility: Include Semantics labels. Ensure 48x48 dp touch targets. WCAG AA contrast.

Security

  • Security scanPassed, 95 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
5

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/elmm-programing/opencode/flutter-ui/badge)](https://verified-skill.com/skills/elmm-programing/opencode/flutter-ui)

Something wrong with this skill or its page? Tell us.