Apply Flutter design principles with Material Design and Cupertino (iOS-style) support when building cross-platform UI. Only execute this when the current project is a Flutter project and involves UI-related work. Use this skill for Flutter widgets, Dart layouts, or cross-platform app development. Ensures Material Design compliance (Android) and Cupertino guidelines (iOS), 8dp grid spacing, Material TextTheme, Theme-based colors with dark mode, and adaptive widgets. Prevents common anti-patterns like hardcoded colors, fixed text sizes, and excessive widget nesting.
Installation
Details
Usage
After installing, this skill will be available to your AI coding assistant.
Verify installation:
npx agent-skills-cli listSkill Instructions
name: flutter-ui-design-guide description: Apply Flutter design principles with Material Design and Cupertino (iOS-style) support when building cross-platform UI. Only execute this when the current project is a Flutter project and involves UI-related work. Use this skill for Flutter widgets, Dart layouts, or cross-platform app development. Ensures Material Design compliance (Android) and Cupertino guidelines (iOS), 8dp grid spacing, Material TextTheme, Theme-based colors with dark mode, and adaptive widgets. Prevents common anti-patterns like hardcoded colors, fixed text sizes, and excessive widget nesting.
Flutter UI Design Guide
Overview
Build cross-platform Flutter apps with Material Design (Android) and Cupertino (iOS) support. This skill provides guidelines for adaptive widgets, theming, spacing, typography, and component patterns optimized for both platforms.
When to Use This Skill
Activate this skill when:
- Building Flutter UI with Material or Cupertino widgets
- Creating cross-platform app screens or layouts
- Working with Flutter development (Dart, Flutter SDK)
- Receiving requests like:
- "Create a login screen in Flutter"
- "Design a Flutter card layout"
- "Build adaptive navigation in Flutter"
- "Make this Flutter UI follow Material Design"
- "Style this Flutter widget with Cupertino"
Do NOT activate for:
- Native iOS (SwiftUI/UIKit) only
- Native Android (Compose/XML) only
- Web development
- Backend/server code
Core Design Philosophy
Cross-Platform Principles
- Consistency - Single codebase, pixel-perfect UI across platforms
- Adaptive - Material (Android) and Cupertino (iOS) styles
- Widget Composition - Reusable, composable widgets
Flexible Extensions
- Simplicity - Clear widget tree, minimal nesting
- Accessibility - Semantics, 48dp touch targets
Framework Approach
- Material Default: Material Design 3 widgets (Android style)
- Cupertino Option: iOS-style widgets when needed
- Adaptive Widgets: Platform auto-detection
How to Use This Skill
Step 1: Load Relevant Reference
Read references/design-principles.md - Cross-platform + adaptive design
Read references/color-system.md - Theme-based colors, dark mode
Read references/spacing-system.md - 8dp grid, EdgeInsets
Read references/typography.md - Material TextTheme, Cupertino text
Read references/component-patterns.md - Material + Cupertino widgets
Read references/anti-patterns.md - Common Flutter mistakes
Step 2: Apply Component-Specific Patterns
- Button: Material (ElevatedButton) vs Cupertino (CupertinoButton)
- Card: Material Card widget
- List: ListView.builder for performance
- TextField: Material TextField vs Cupertino CupertinoTextField
- Navigation: AppBar, BottomNavigationBar, CupertinoNavigationBar
- Dialog: AlertDialog vs CupertinoAlertDialog
Step 3: Validate Against Anti-Patterns
- ❌ Hardcoded colors (
Colors.black,Colors.white) - ❌ Fixed text sizes (no TextTheme)
- ❌ Excessive widget nesting
- ❌ setState overuse
- ❌ Column for long lists (use ListView)
Step 4: Ensure System Consistency
8dp grid:
- Use: 4.0, 8.0, 16.0, 24.0, 32.0, 48.0
EdgeInsets.all(16.0),SizedBox(height: 16.0)
Theme colors (auto dark mode):
Theme.of(context).colorScheme.primaryTheme.of(context).colorScheme.onSurfaceCupertinoTheme.of(context).primaryColor
TextTheme (REQUIRED):
Theme.of(context).textTheme.headlineMediumTheme.of(context).textTheme.bodyMedium
Resources
references/
- design-principles.md - Cross-platform, Material + Cupertino, widget composition
- color-system.md - ColorScheme, Theme, dark mode
- spacing-system.md - 8dp grid, EdgeInsets, SizedBox
- typography.md - Material TextTheme, Cupertino text styles
- component-patterns.md - Material + Cupertino widgets
- anti-patterns.md - Common mistakes: hardcoded colors, nesting, performance
Quick Decision Tree
Flutter UI Component Request
│
├─ Material or Cupertino? → Material default, Cupertino for iOS feel
│
├─ What spacing? → 8dp grid (spacing-system.md)
│
├─ What colors? → Theme.of(context).colorScheme (color-system.md)
│
├─ What typography? → TextTheme (typography.md)
│
└─ Validation → Check anti-patterns.md
Examples
Good Request Flow:
User: "Create a login form in Flutter"
→ Read references/component-patterns.md (TextField section)
→ Apply: TextField, Theme colors, TextTheme, 8dp spacing
→ Validate: No hardcoded colors, proper widget tree
→ Implement with Column { TextField, ElevatedButton }
Implementation Checklist:
- ✅ Spacing uses 8dp multiples
- ✅ TextTheme used (headlineMedium, bodyMedium)
- ✅ Theme colors (auto dark mode)
- ✅ Touch targets 48x48dp minimum
- ✅ Material or Cupertino widgets
- ✅ Minimal widget nesting
- ✅ ListView for long lists
Flutter Code Examples
✅ Good: Theme-Based Colors
Text(
'제목',
style: Theme.of(context).textTheme.headlineMedium?.copyWith(
color: Theme.of(context).colorScheme.onSurface,
),
)
✅ Good: Material Button
ElevatedButton(
onPressed: () {},
child: Text('확인'),
)
❌ Bad: Hardcoded, No Theme
Text(
'제목',
style: TextStyle(fontSize: 24.0, color: Colors.black), // ❌
)
Platform-Specific Considerations
Adaptive Widgets
Widget build(BuildContext context) {
if (Theme.of(context).platform == TargetPlatform.iOS) {
return CupertinoButton(child: Text('확인'), onPressed: () {});
}
return ElevatedButton(child: Text('확인'), onPressed: () {});
}
Dark Mode
MaterialApp(
theme: lightTheme,
darkTheme: darkTheme,
themeMode: ThemeMode.system, // Auto dark mode
)
Reference Documentation
More by muheun
View allandroid-ui-design-guide: Apply Android/Jetpack Compose design principles following Material Design 3 when building any Android UI component. Only execute this when the current project is an Android project and involves UI-related work. Use this skill for Compose layouts, Material components, or Android app development. Ensures Material You compliance with Dynamic Color, expressive theming, 4dp grid spacing, Roboto typography with Type Scale, and native Android patterns. Prevents common anti-patterns like hardcoded colors, Dark Mode neglect, and touch target violations.
web-ui-design-guide: Apply modern, professional web UI design principles when building any web UI component. Only execute this when the current project is a web project and involves UI-related work. Use this skill for UI tasks involving buttons, forms, cards, layouts, navigation, or any visual web component. Ensures clean minimal design, neutral color palettes with single accent color, 8px grid spacing, clear typography hierarchy, and subtle visual effects. Prevents common anti-patterns like rainbow gradients, tiny text, and inconsistent spacing.
Execute git commit operations when user requests to commit or push code changes. Use this skill to generate recommended commit messages, perform local commits, or push to remote repositories. Auto-activates for Korean keywords ("커밋", "푸시") and English keywords ("commit", "push"). Always uses Bash tool for git operations and Claude's natural language processing for message generation.
Linear 이슈 생성/수정/코멘트 기능을 제공하는 스킬. 한글 키워드 ("이슈 생성", "이슈 수정", "코멘트 추가") 및 영문 키워드 ("create issue", "update issue", "add comment")로 자동 활성화. Gitmoji 기반 한글 제목과 사용자 승인 필수 워크플로우로 일관된 이슈 관리를 지원합니다.
