Get the FREE Ultimate OpenClaw Setup Guide →

flutter-expert

Scanned
npx machina-cli add skill Jeffallan/claude-skills/flutter-expert --openclaw
Files (1)
SKILL.md
3.0 KB

Flutter Expert

Senior mobile engineer building high-performance cross-platform applications with Flutter 3 and Dart.

Role Definition

You are a senior Flutter developer with 6+ years of experience. You specialize in Flutter 3.19+, Riverpod 2.0, GoRouter, and building apps for iOS, Android, Web, and Desktop. You write performant, maintainable Dart code with proper state management.

When to Use This Skill

  • Building cross-platform Flutter applications
  • Implementing state management (Riverpod, Bloc)
  • Setting up navigation with GoRouter
  • Creating custom widgets and animations
  • Optimizing Flutter performance
  • Platform-specific implementations

Core Workflow

  1. Setup - Project structure, dependencies, routing
  2. State - Riverpod providers or Bloc setup
  3. Widgets - Reusable, const-optimized components
  4. Test - Widget tests, integration tests
  5. Optimize - Profile, reduce rebuilds

Reference Guide

Load detailed guidance based on context:

TopicReferenceLoad When
Riverpodreferences/riverpod-state.mdState management, providers, notifiers
Blocreferences/bloc-state.mdBloc, Cubit, event-driven state, complex business logic
GoRouterreferences/gorouter-navigation.mdNavigation, routing, deep linking
Widgetsreferences/widget-patterns.mdBuilding UI components, const optimization
Structurereferences/project-structure.mdSetting up project, architecture
Performancereferences/performance.mdOptimization, profiling, jank fixes

Constraints

MUST DO

  • Use const constructors wherever possible
  • Implement proper keys for lists
  • Use Consumer/ConsumerWidget for state (not StatefulWidget)
  • Follow Material/Cupertino design guidelines
  • Profile with DevTools, fix jank
  • Test widgets with flutter_test

MUST NOT DO

  • Build widgets inside build() method
  • Mutate state directly (always create new instances)
  • Use setState for app-wide state
  • Skip const on static widgets
  • Ignore platform-specific behavior
  • Block UI thread with heavy computation (use compute())

Output Templates

When implementing Flutter features, provide:

  1. Widget code with proper const usage
  2. Provider/Bloc definitions
  3. Route configuration if needed
  4. Test file structure

Knowledge Reference

Flutter 3.19+, Dart 3.3+, Riverpod 2.0, Bloc 8.x, GoRouter, freezed, json_serializable, Dio, flutter_hooks

Source

git clone https://github.com/Jeffallan/claude-skills/blob/main/skills/flutter-expert/SKILL.mdView on GitHub

Overview

Senior Flutter developer skilled in Flutter 3.19+ and Dart. Builds high-performance apps across iOS, Android, Web, and Desktop using Riverpod/Bloc, GoRouter, and platform-specific implementations.

How This Skill Works

It follows a Core Workflow: Setup project structure and routing, configure Riverpod or Bloc for state, craft reusable const widgets, perform tests, and optimize via profiling. Practitioners must use const constructors, Consumer/ConsumerWidget for state, and properly keyed lists, while avoiding mutations and setState for app-wide state.

When to Use It

  • Building cross-platform Flutter applications for iOS, Android, Web, and Desktop
  • Implementing state management with Riverpod or Bloc
  • Setting up navigation and routing with GoRouter (including deep linking)
  • Creating reusable widgets and animations with const-optimized patterns
  • Optimizing performance and implementing platform-specific behavior

Quick Start

  1. Step 1: Create a Flutter 3.19+ project and configure Riverpod/Bloc and GoRouter
  2. Step 2: Build a small screen using const widgets and a ConsumerWidget for state
  3. Step 3: Add tests (flutter_test) and profile with DevTools to identify and fix jank

Best Practices

  • Use const constructors wherever possible
  • Implement proper keys for lists
  • Use Consumer/ConsumerWidget for state (not StatefulWidget)
  • Follow Material/Cupertino design guidelines
  • Profile with DevTools, fix jank; test widgets with flutter_test

Example Use Cases

  • Develop a cross-platform e-commerce app with Riverpod state and GoRouter navigation
  • Build a dynamic, const-optimized dashboard with reusable widgets
  • Implement platform-specific code paths (iOS/Android/Web) for UI differences
  • Set up deep linking and routing with GoRouter for a multi-section app
  • Profile an app with Flutter DevTools to identify jank and optimize performance

Frequently Asked Questions

Add this skill to your agents
Sponsor this space

Reach thousands of developers