---
title: Flutter Expert Skill for Claude Code
canonical: https://skillselion.com/skills/jeffallan/claude-skills/flutter-expert
content_type: text/markdown
description: Flutter Expert is a skill for senior-level cross-platform mobile development using Flutter 3+ and Dart.
---

# Flutter Expert Skill

Title: Flutter Expert Skill for Claude Code

> Flutter Expert is a skill for senior-level cross-platform mobile development using Flutter 3+ and Dart.

Canonical: https://skillselion.com/skills/jeffallan/claude-skills/flutter-expert

Flutter Expert is a skill for senior-level cross-platform mobile development using Flutter 3+ and Dart.

Flutter Expert is a senior mobile engineering skill for building high-performance cross-platform applications with Flutter 3 and Dart. Developers use this skill when implementing state management, navigation, custom widgets, and performance optimization. The skill covers widget patterns, GoRouter navigation, Riverpod/Bloc providers, and Flutter DevTools profiling.

## Key facts

- Installs: 14,851
- GitHub stars: 12,414
- Author: Jeffallan
- Repository: Jeffallan/claude-skills
- Install command: `npx skills add https://github.com/Jeffallan/claude-skills --skill flutter-expert`
- Last updated: November 16, 2026

## What Flutter Expert does

Flutter Expert is a senior mobile engineering skill for building high-performance cross-platform applications with Flutter 3 and Dart. Developers use this skill when implementing state management, na

How do you implement Bloc state management in Flutter?

Bloc and Cubit classes, immutable state models, event handlers, and testable Flutter feature modules with separated UI and business logic.

Best for: Mobile developers building cross-platform applications who need guidance on state management and performance

Not for: Native-only iOS/Android development

- Cross-platform Flutter 3+ development with Dart: widget creation, state management, and navigation
- Riverpod or Bloc/Cubit state management patterns with const-optimization
- Performance profiling with Flutter DevTools, jank elimination, and rebuild optimization

## SKILL.md

## Flutter Expert

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

### 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**  -  Scaffold project, add dependencies (`flutter pub get`), configure routing
2. **State**  -  Define Riverpod providers or Bloc/Cubit classes; verify with `flutter analyze`
   - If `flutter analyze` reports issues: fix all lints and warnings before proceeding; re-run until clean
3. **Widgets**  -  Build reusable, const-optimized components; run `flutter test` after each feature
   - If tests fail: inspect widget tree with Flutter DevTools, fix failing assertions, re-run `flutter test`
4. **Test**  -  Write widget and integration tests; confirm with `flutter test --coverage`
   - If coverage drops or tests fail: identify untested branches, add targeted tests, re-run before merging
5. **Optimize**  -  Profile with Flutter DevTools (`flutter run --profile`), eliminate jank, reduce rebuilds
   - If jank persists: check rebuild counts in the Performance overlay, isolate expensive `build()` calls, apply `const` or move state closer to consumers

### Reference Guide

Load detailed guidance based on context:

| Topic | Reference | Load When |
|-------|-----------|-----------|
| Riverpod | `references/riverpod-state.md` | State management, providers, notifiers |
| Bloc | `references/bloc-state.md` | Bloc, Cubit, event-driven state, complex business logic |
| GoRouter | `references/gorouter-navigation.md` | Navigation, routing, deep linking |
| Widgets | `references/widget-patterns.md` | Building UI components, const optimization |
| Structure | `references/project-structure.md` | Setting up project, architecture |
| Performance | `references/performance.md` | Optimization, profiling, jank fixes |

### Code Examples

#### Riverpod Provider + ConsumerWidget (correct pattern)

```dart
// provider definition
final counterProvider = StateNotifierProvider<CounterNotifier, int>(
  (ref) => CounterNotifier(),
);

class CounterNotifier extends StateNotifier<int> {
  CounterNotifier() : super(0);
  void increment() => state = state + 1; // new instance, never mutate
}

// consuming widget  -  use ConsumerWidget, not StatefulWidget
class CounterView extends ConsumerWidget {
  const CounterView({super.key});

  @override
  Widget build(BuildContext context, WidgetRef ref) {
    final count = ref.watch(counterProvider);
    return Text('$count');
  }
}
```

#### Before / After  -  State Management

```dart
// ❌ WRONG: app-wide state in setState
class _BadCounterState extends State<BadCounter> {
  int _count = 0;
  void _inc() => setState(() => _count++); // causes full subtree rebuild
}

// ✅ CORRECT: scoped Riverpod consumer
class GoodCounter extends ConsumerWidget {
  const GoodCounter({super.key});
  @override
  Widget build(BuildContext context, WidgetRef ref) {
    final count = ref.watch(counterProvider);
    return IconButton(
      onPressed: () => ref.read(counterProvider.notifier).increment(),
      icon: const Icon(Icons.add), // const on static widgets
    );
  }
}
```

### 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()`)

### Troubleshooting Common Failures

| Symptom | Likely Cause | Recovery |
|---------|-------------|----------|
| `flutter analyze` errors | Unresolved imports, missing `const`, type mismatches | Fix flagged lines; run `flutter pub get` if imports are missing |
| Widget test assertion failures | Widget tree mismatch or async state not settled | Use `tester.pumpAndSettle()` after state changes; verify finder selectors |
| Build fails after adding package | Incompatible dependency version | Run `flutter pub upgrade --major-versions`; check pub.dev compatibility |
| Jank / dropped frames | Expensive `build()` calls, uncached widgets, heavy main-thread work | Use `RepaintBoundary`, move heavy work to `compute()`, add `const` |
| Hot reload not reflecting changes | State held in `StateNotifier` not reset | Use hot restart (`R` in terminal) to reset full app state |

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

[Documentation](https://jeffallan.github.io/claude-skills/skills/frontend/flutter-expert/)

## Flutter Expert FAQ

### When should Flutter developers choose Bloc over Riverpod?

flutter-expert recommends Bloc for event-driven workflows, complex business logic, forms, auth flows, and wizards needing explicit event-to-state transitions. Riverpod suits simpler mutable state where Cubit or Bloc overhead is unnecessary.

### What Bloc concepts does flutter-expert cover?

flutter-expert covers Event as user input, immutable State objects, Bloc as event-to-state mappers, and Cubit as a state-only variant without explicit events. The skill targets testable separation between Flutter UI and business logic.

### Is Flutter Expert safe to install?

skills.sh reports 3 of 3 security scanners passed. Review the Security Audits panel on this page before installing in production.

## Machine access

- [Sitemap](https://skillselion.com/sitemap.xml)
- [llms.txt](https://skillselion.com/llms.txt)
- [llms-full.txt](https://skillselion.com/llms-full.txt)
- [Developer resources](https://skillselion.com/developers)
- [OpenAPI spec](https://skillselion.com/openapi.json)
- [MCP handshake](https://skillselion.com/.well-known/mcp)
- [API catalog](https://skillselion.com/.well-known/api-catalog)
- [AI catalog](https://skillselion.com/.well-known/ai-catalog.json)
- [Pricing](https://skillselion.com/pricing.md)
- [Auth](https://skillselion.com/auth.md)
- [AGENTS.md](https://skillselion.com/AGENTS.md)
- [Contact](https://skillselion.com/contact)
- [Home](https://skillselion.com/)
