Skip to content
flutter-ui-design-guide logo

Flutter UI Design Guide

flutter-ui-design-guide

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...

SKILL.md

Full skill instructions

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

  1. Consistency - Single codebase, pixel-perfect UI across platforms
  2. Adaptive - Material (Android) and Cupertino (iOS) styles
  3. Widget Composition - Reusable, composable widgets

Flexible Extensions

  1. Simplicity - Clear widget tree, minimal nesting
  2. 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.primary
  • Theme.of(context).colorScheme.onSurface
  • CupertinoTheme.of(context).primaryColor

TextTheme (REQUIRED):

  • Theme.of(context).textTheme.headlineMedium
  • Theme.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 Design skills

brandkit logo
Design

brandkit

Premium brand-kit image generation for high-end identity systems, logo concepts, and visual-world presentations.

92.7K 345.8K
View

Premium website design-to-code skill that generates visual references first, then builds faithful frontend implementations.

92.7K 341.7K
View

Premium frontend image direction for landing pages and marketing sites, generating one distinct horizontal image per section.

92.7K 337.8K
View

Premium mobile app screen concepts and flows with clean hierarchy, strong imagery, and distinctive art direction.

92.7K 331.8K
View

Emil Kowalski's philosophy on UI polish, component design, and the invisible details that make software feel good.

43.5K 323.4K
View

Frontend design and iteration for production-grade interfaces, from concept to ship.

76.8K 313.3K
View

Reverse-engineer design tokens from public websites into starter token files for your project.

232 129.9K
View
Animate logo
Design

Animate

Builds an animation from scratch by making the decisions in the order that determines whether it feels right.

43.5K 117.9K
View

Create beautiful visual art in .png and .pdf documents using design philosophy. You should use this skill when the user asks to create a poster, piece of art, design, or other static piece. Create original visual designs, never copying existing artists' work to avoid copyright violations.

179.7K 114.2K
View

Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply.

179.7K 100.1K
View

Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with colors/fonts that you can apply to any artifact that has been creating, or can generate a new theme on-the-fly.

179.7K 89.5K
View

Design AI tools

Maze Guru logo
Images

Maze Guru

Chat-to-edit AI studio for product photos, portraits, branding, and video.

Freemium
View
R
Design

RoomGPT

Generate your dream room in seconds.

Paid
View

Redesign your interior in seconds using AI

Paid
View
Reroom logo
Design

Reroom

Transform rooms with AI-generated designs.

Freemium
View
Jife logo
Design

Jife

Transform Your Space with AI-Powered Japanese Interior Designs by Jife

Paid
View
Visily logo
Design

Visily

AI-powered wireframes for non-designers.

Free
View

Revolutionize Property Viewing with AI-Generated Floor Plans and Virtual Tours

Paid
View
Archsynth logo
Design

Archsynth

Transform sketches into stunning architectural renders with AI.

Paid
View