flutter-dev
하는 일
이 스킬은 Flutter와 Dart로 여러 플랫폼에서 돌아가는 앱을 만드는 가이드입니다. 화면, 상태, 탐색, 성능에 검증된 패턴을 원하는 개발자를 위한 스킬입니다.
사용하는 경우
- ✓휴대폰이나 다른 플랫폼용 Flutter 앱을 만들 때.
- ✓Riverpod이나 Bloc 같은 상태 관리 방식을 골라야 할 때.
- ✓Flutter 앱이 느껴져서 성능을 개선하고 싶은 경우.
스킬 링크
https://github.com/MiniMax-AI/skills/blob/main/skills/flutter-dev/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“페이지 이동이 있고 상품 목록이 빠르게 로드되는 Flutter 쇼핑 앱을 만들고 싶어요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
이 스킬은 const 생성자 사용 같은 핵심 규칙과 위젯 및 성능 패턴을 표로 정리해 제공합니다. 에이전트는 설명한 화면과 기능에 이 패턴을 적용합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
Flutter Development Guide
A practical guide for building cross-platform applications with Flutter 3 and Dart. Focuses on proven patterns, state management, and performance optimization.
Quick Reference
Widget Patterns
| Purpose | Component |
|---|---|
| State management (simple) | StateProvider + ConsumerWidget |
| State management (complex) | NotifierProvider / Bloc |
| Async data | FutureProvider / AsyncNotifierProvider |
| Real-time streams | StreamProvider |
| Navigation | GoRouter + context.go/push |
| Responsive layout | LayoutBuilder + breakpoints |
| List display | ListView.builder |
| Complex scrolling | CustomScrollView + Slivers |
| Hooks | HookWidget + useState/useEffect |
| Forms | Form + TextFormField + validation |
Performance Patterns
| Purpose | Solution |
|---|---|
| Prevent rebuilds | const constructors |
| Selective updates | ref.watch(provider.select(...)) |
| Isolate repaints | RepaintBoundary |
| Lazy lists | ListView.builder |
| Heavy computation | compute() isolate |
| Image caching | cached_network_image |
Core Principles
Widget Optimization
- Use
constconstructors wherever possible - Extract static widgets to separate const classes
- Use
Keyfor list items (ValueKey, ObjectKey) - Prefer
ConsumerWidgetoverStatefulWidgetfor state
State Management
- Riverpod for dependency injection and simple state
- Bloc/Cubit for event-driven workflows and complex logic
- Never mutate state directly (create new instances)
- Use
select()to minimize rebuilds
Layout
- 8pt spacing increments (8, 16, 24, 32, 48)
- Responsive breakpoints: mobile (<650), tablet (650-1100), desktop (>1100)
- Support all screen sizes with flexible layouts
- Follow Material 3 / Cupertino design guidelines
Performance
- Profile with DevTools before optimizing
- Target <16ms frame time for 60fps
- Use
RepaintBoundaryfor complex animations - Offload heavy work with
compute()
Checklist
Widget Best Practices
-
constconstructors on all static widgets - Proper
Keyon list items -
ConsumerWidgetfor state-dependent widgets - No widget building inside
build()method - Extract reusable widgets to separate files
State Management
- Immutable state objects
-
select()for granular rebuilds - Proper provider scoping
- Dispose controllers and subscriptions
- Handle loading/error states
Navigation
- GoRouter with typed routes
- Auth guards via redirect
- Deep linking support
- State preservation across routes
Performance
- Profile mode testing (
flutter run --profile) - <16ms frame rendering time
- No unnecessary rebuilds (DevTools check)
- Images cached and resized
- Heavy computation in isolates
Testing
- Widget tests for UI components
- Unit tests for business logic
- Integration tests for user flows
- Bloc tests with
blocTest()
References
| Topic | Reference |
|---|---|
| Widget patterns, const optimization, responsive layout | Widget Patterns |
| Riverpod providers, notifiers, async state | Riverpod State Management |
| Bloc, Cubit, event-driven state | Bloc State Management |
| GoRouter setup, routes, deep linking | GoRouter Navigation |
| Feature-based structure, dependencies | Project Structure |
| Profiling, const optimization, DevTools | Performance Optimization |
| Widget tests, integration tests, mocking | Testing Strategies |
| iOS/Android/Web specific implementations | Platform Integration |
| Implicit/explicit animations, Hero, transitions | Animations |
| Dio, interceptors, error handling, caching | Networking |
| Form validation, FormField, input formatters | Forms |
| i18n, flutter_localizations, intl | Localization |
Flutter, Dart, Material Design, and Cupertino are trademarks of Google LLC and Apple Inc. respectively. Riverpod, Bloc, and GoRouter are open-source packages by their respective maintainers.
자주 묻는 질문
속도 개선에 어떻게 도움이 되나요?
const 생성자, 선택적 업데이트, 지연 리스트 같은 패턴을 추천해 불필요한 다시 그리기를 줄입니다.
어떤 탐색 방식을 사용하나요?
화면 사이 이동에 GoRouter를 사용합니다.
테스트도 다루나요?
네. 스킬은 테스트 전략과 DevTools 프로파일링을 포함합니다.
상세 정보
작성자의 원본 설명
Flutter cross-platform development guide covering widget patterns, Riverpod/Bloc state management, GoRouter navigation, performance optimization, and platform-specific implementations. Includes const optimization, responsive layouts, testing strategies, and DevTools profiling. Use when: building Flutter apps, implementing state management (Riverpod/Bloc), setting up GoRouter navigation, creating custom widgets, optimizing performance, writing widget tests, cross-platform development.
repo: MiniMax-AI/skills
인기도
- GitHub 스타
- 14k
- 순위
- #11288
- 라이선스
- MIT
- 업데이트
- 2026. 4. 18.
댓글
- …
이 저장소의 다른 스킬
design-style-skill
14k에이전트가 날카롭고 간결한 스타일부터 부드럽고 둥근 스타일까지 슬라이드 시각 스타일을 하나로 정해 모서리와 여백을 맞추도록 돕습니다.
ppt-editing-skill
14k에이전트가 기존 PowerPoint 파일이나 템플릿의 텍스트를 바꾸고, 슬라이드 순서를 옮기거나 지우고, 올바른 파일로 다시 묶어 안전하게 편집하도록 돕습니다.
ppt-orchestra-skill
14k에이전트가 PowerPoint 덱 전체를 만들기 전에 계획하도록 돕습니다. 각 슬라이드를 표준 페이지 유형으로 나누고 구성의 다양성과 텍스트 품질을 점검합니다.
slide-making-skill
14k에이전트가 PptxGenJS로 레이아웃, 텍스트, 이미지, 차트, 글꼴을 다루는 네이티브 .pptx 슬라이드를 JavaScript로 작성하도록 돕습니다.
비슷한 스킬
android-clean-architecture
280k에이전트가 Android 프로젝트를 효율적으로 구성하도록 돕습니다. 유지보수와 새 기능 개발이 쉽도록 코드를 구조화합니다.
compose-multiplatform-patterns
280k에이전트가 KMP 프로젝트에서 Compose Multiplatform과 Jetpack Compose 패턴을 쓰도록 돕습니다. 상태, 내비게이션, 테마, 성능을 다룹니다.
dart-flutter-patterns
280kDart와 Flutter 앱용 코드를 작성하도록 에이전트를 돕습니다. 견고하고 관리하기 쉬운 앱을 만드는 현대적인 패턴을 씁니다.