flutter-idiomatic-flutter
БесплатноБез исполняемых скриптовНе проверенCompose modern Flutter layouts and widgets idiomatically. Use for widget trees, layout constraints, mounted safety, and UI composition—not BLoC state…
от HoangNguyen0403★ 598 звёзд на GitHubОб этом скилле
Idiomatic Flutter
Priority: P1 (HIGH)
- Async Gaps: Check
if (context.mounted)before usingBuildContextafterawait. - Composition: Extract complex UI into small widgets. Avoid deep nesting or large helper methods.
- Layout:
- Spacing: Prefer
spacingparameter onRow/Column(Flutter 3.27+) over insertingSizedBox/Gapbetween children. On earlier Flutter versions, useGap(n)instead —spacingwill not compile. - Fallback: Use
Gap(n)orSizedBoxonly whenspacingcannot express the layout (e.g., conditional gaps). - Empty UI: Use
const SizedBox.shrink(). - Intrinsic: Avoid
IntrinsicWidth/Height; useStack+FractionallySizedBoxfor overlays. - Spacing: Use
Gap(n)orSizedBoxoverPaddingfor simple gaps. - Optimization: Use
ColoredBox/Padding/DecoratedBoxinstead ofContainerwhen possible. - Themes: Use extensions for
Theme.of(context)access.
- Spacing: Prefer
Anti-Patterns
- No BuildContext after await without mounted check: Check
context.mountedto prevent crashes across async gaps. - No _buildXxx() helper methods: Extract to
const StatelessWidgetfor proper rebuild control. - No direct controller access in widget: Use BLoC or Riverpod to decouple UI from state.
- No Container for empty space: Use
const SizedBox.shrink().
Установить flutter-idiomatic-flutter в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл flutter-idiomatic-flutter?
Compose modern Flutter layouts and widgets idiomatically. Use for widget trees, layout constraints, mounted safety, and UI composition—not BLoC state management, routing, dependency injection, or tests.
Как установить скилл flutter-idiomatic-flutter?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл flutter-idiomatic-flutter запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
frontend-design
Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making…
от Anthropicwebapp-testing
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing…
от Anthropicbrand-guidelines
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…
от Anthropicweb-artifacts-builder
Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use…
от Anthropic