FortiumPartners avatar

developing-with-flutter

Flutter SDK for cross-platform development targeting iOS, Android, and Web. Use for widget architect

作者 FortiumPartners|オープンソース

Flutter SDK Skill

Version: 1.0.0 | Category: Mobile Development | Auto-Detection: Yes


Purpose

This skill provides Claude Code agents with comprehensive knowledge of the Flutter SDK for:

  • Cross-Platform Development: Build for iOS, Android, and Web from single codebase
  • Widget Architecture: Stateless, Stateful, and Consumer widgets
  • State Management: Riverpod, Provider, Bloc patterns
  • Platform Integration: Platform channels, native modules
  • Navigation: GoRouter, deep linking, URL-based routing
  • Testing: Widget tests, integration tests, golden tests
  • Deployment: App Store, Play Store, and web hosting

Critical: Avoiding Interactive Mode

Flutter CLI can enter interactive mode which will hang Claude Code. Always use flags to bypass prompts:

CommandInteractiveNon-Interactive
flutter runPrompts for deviceflutter run -d <device_id>
flutter createMay promptflutter create my_app --org com.example
flutter emulators --launchPrompts for emulatorflutter emulators --launch <emulator_id>

Always include:

  • -d <device_id> for device selection
  • Explicit build targets (apk, appbundle, ios, web)
  • --suppress-analytics in CI/CD environments

File Organization

FileSizePurpose
SKILL.md~22KBQuick reference for immediate use
REFERENCE.md~30KBComprehensive guide with advanced patterns
README.md~4KBThis file - architecture overview
examples/ci-cd.example.yaml~6KBGitHub Actions deployment examples

Auto-Detection Triggers

This skill auto-loads when Flutter context is detected:

File-based triggers:

  • pubspec.yaml with flutter dependency
  • lib/main.dart present
  • .dart files in project
  • android/ and ios/ directories

Context-based triggers:

  • User mentions "Flutter"
  • User runs flutter CLI commands
  • Widget development discussions
  • Cross-platform mobile development

Agent Integration

Primary Agent

AgentRole
mobile-developerPrimary agent - loads this skill automatically

Supporting Agents

AgentUse Case
deep-debuggerPerformance profiling, crash analysis
code-reviewerDart code review, accessibility audit
deployment-orchestratorApp store submissions
infrastructure-developerFirebase, backend services

Handoff Patterns

To Deep-Debugger:

When:
  - Performance profiling needed
  - Crash analysis required
  - Memory leak investigation
  - Platform-specific bugs

Provide:
  - flutter logs output
  - Stack traces
  - Device information

From Deep-Debugger:

When:
  - Issue identified as widget/state problem
  - Need code fix implementation
  - Platform channel issues identified

Key Capabilities

CLI Commands (25+)

Project:     create, clean, pub get, pub upgrade, pub outdated
Development: run, attach, install, logs
Building:    build apk, build appbundle, build ios, build ipa, build web
Testing:     test, drive, analyze
Debugging:   logs, screenshot, symbolize
Config:      doctor, devices, emulators, config, channel

State Management Support

SolutionBest ForComplexity
RiverpodMost apps (2025 recommended)Medium
ProviderSimple appsLow
BlocEnterprise, large teamsHigh

Platform Targets

PlatformBuild CommandOutput
Android APKflutter build apk.apk file
Android Bundleflutter build appbundle.aab file (Play Store)
iOSflutter build iosXcode project
iOS IPAflutter build ipa.ipa file
Webflutter build webStatic files

Web Considerations

Flutter Web is best suited for:

  • Internal tools and dashboards
  • Authenticated applications
  • Progressive Web Apps (PWAs)
  • Apps where SEO is not critical

For SEO-critical content-focused sites, consider alternative approaches.


Version History

VersionDateChanges
1.0.02025-12-27Initial release

Sources

developing-with-flutter - Claude Code・Cursor 対応の AIエージェント Skill | Agent Skills