flutter-expert
Skill5 starsChanged 3 months agoMITView on GitHub
Use when working in a Flutter project - pubspec.yaml, *.dart files, lib/main.dart, analysis_options.yaml, android/ + ios/ folders, or mentions of Flutter, Dart, widgets, Riverpod, Bloc, or GoRouter. Builds features, state management, navigation, platform channels/FFI, and tests for Flutter 3.3x / Dart 3.x apps. Invoke for adding screens or widgets, wiring Riverpod or Bloc state, GoRouter navigation and deep links, fixing jank or excess rebuilds, calling native code, writing widget/integration tests, and release/flavor setup.
12 other projects use a version of this.
Adopted by
Most recently taken up by
- Leo-Atienza/atlas-claudetheir own version, first seen Jul 24, 2026
- iamdemetris/lude-kittheir own version, first seen Jul 17, 2026
- james-paul25/claude-skilltheir own version, first seen Jul 11, 2026
- jshsakura/awesome-opencode-skillstheir own version, first seen Jul 8, 2026
- codeApe-7/ai-agent-workflowGrouptheir own version, first seen Jun 6, 2026
- Gavinoio/skillstheir own version, first seen Apr 22, 2026
Used with
Projects with it also use fintech-engineer, react-specialist and 3 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
belokonmSkillfintech-engineer
Expert in financial technology systems, double-entry ledger design, high-precision math, and regulatory compliance. Use when building payment systems, ledger architectures, financial calculations, PCI compliance, or banking integrations. Triggers include "fintech", "ledger", "double-entry", "financial calculations", "PCI compliance", "banking API".
Also in 4 projects that use this
belokonmSkillreact-specialist
Expert React developer specializing in React 18+, Next.js ecosystem, and modern React patterns. This agent excels at building performant, scalable React applications using hooks, concurrent features, state management solutions like Zustand, and data fetching with TanStack Query.
Also in 3 projects that use this
- +3 more from belokonm
Other versions12 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 12
- Jeffallan/claude-skills★ 12ksame name
- jshsakura/awesome-opencode-skills★ 29same name
- codeApe-7/ai-agent-workflowGroup★ 17same name
- belokonm/claude-supercode-skills★ 11same name
- xfstudio/skills★ 9same name
- Leo-Atienza/atlas-claude★ 4same name
- marttp/my_agent_skills_I_use★ 4same name
- ai4brands-design/claude-skills★ 2same name
- Gavinoio/skills★ 1same name
- iamdemetris/lude-kit★ 0same name
2 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository15 other files it gives its agents.
- docker-expertSkill
- engineering-rulesSkill
- fastapi-expertSkill
- fastify-expertSkill
- go-expertSkill
- jetpack-compose-expertSkill
- mobile-qa-expertSkill
- nestjs-expertSkill
- playwright-expertSkill
- react-expertSkill
- react-native-expertSkill
- remix-expertSkill
- swiftui-expertSkill
- terraform-expertSkill
- vue-expertSkill
The file
We split this skill into the rules it gives an agent
3 rules. 0 are common, 0 are distinctive, and 3 are very specific to this project.
0
Common
Most of the 11 edited versions we read keep these.
0
Distinctive
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 31
Implement: - Write the change using Dart 3 idioms: sealed classes + exhaustive switch expressions, records for lightweight tuples, pattern …
- Very specific: line 32
Generate code: - If the change touches @riverpod, @freezed, @JsonSerializable, or typed routes, run dart run build_runner build …
- Very specific: line 33
Verify analyze/format: - Run dart format . then flutter analyze.
“Common” is measured: kept by at least 6 in 10 of the 11 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Flutter Expert
Turns Claude into a senior Flutter engineer who ships idiomatic Dart 3 / Flutter 3.3x code with modern state management, correct navigation, and verified builds - not the 2021-era patterns that dominate training data.
When to Use This Skill
- Building screens, widgets, or features in an existing Flutter app
- Choosing and wiring state management (Riverpod code-gen providers, AsyncNotifier, Bloc/Cubit)
- Navigation with GoRouter: ShellRoute/StatefulShellRoute, auth redirects, deep links
- Diagnosing jank, excessive rebuilds, or slow lists
- Calling native platform code (MethodChannel, Pigeon) or C libraries (dart:ffi)
- Modeling data with freezed + json_serializable and Dart 3 sealed classes/records
- Writing widget tests, golden tests, and integration tests (integration_test, patrol)
- Release prep: flavors, Android signing, iOS provisioning basics
Core Workflow
- Analyze - Read
pubspec.yaml(Flutter/Dart SDK constraints, state-management and router packages, code-gen deps),analysis_options.yaml(lint set), andlib/layout before writing anything. Match the project's existing state-management choice - do not introduce Riverpod into a Bloc app or vice versa. Note whether the project uses code generation (build_runner,freezed,riverpod_generator,go_router_builder). - Implement - Write the change using Dart 3 idioms: sealed classes + exhaustive
switchexpressions, records for lightweight tuples, pattern matching over manual casts,constconstructors everywhere possible. Prefer code-gen providers (@riverpod) over manual ones,StatelessWidget/ConsumerWidgetoverStatefulWidgetunless local ephemeral state is genuinely needed. - Generate code - If the change touches
@riverpod,@freezed,@JsonSerializable, or typed routes, rundart run build_runner build --delete-conflicting-outputs; if generation fails, fix the annotated source and re-run until it completes with no errors. - Verify analyze/format - Run
dart format .thenflutter analyze; fix all reported issues and re-run until clean before proceeding. Treat infos/deprecations (e.g.withOpacity,WillPopScope) as real work items, not noise. - Test - Write or update widget/unit tests for the change, then run
flutter test; fix all failures and re-run until every test passes. For flows spanning navigation or platform channels, add anintegration_test(or patrol) case and run it on a device/emulator:flutter test integration_test; debug and re-run until it passes. - Prove it works - Run the app (
flutter run -d <device>or the project's flavor variant, e.g.flutter run --flavor dev -t lib/main_dev.dart), exercise the changed flow, and check the console for exceptions and layout overflows. For performance work, confirm in DevTools (rebuild stats, frame chart) that the fix actually reduced rebuilds/frame times.
Reference Guide
Load detailed guidance only when the task needs it:
| Topic | Reference | Load When |
| State management: Riverpod 2/3 code-gen, AsyncNotifier, Bloc/Cubit, freezed models | references/state-riverpod-bloc.md | Adding/refactoring app state, async data loading, provider wiring, Bloc events/states, freezed/json_serializable models, or a "which state management" decision |
| Navigation: GoRouter routes, ShellRoute, redirect, deep links, typed routes | references/navigation-gorouter.md | Adding routes/tabs, auth-gated navigation, deep/app links, or nav-related bugs (back button, nested navigators) |
| Rebuild & render performance: const, keys, select, lists, DevTools | references/performance-widgets.md | Jank, dropped frames, "whole screen rebuilds", slow/scroll-stuttering lists, or any perf review |
| Platform integration: MethodChannel/EventChannel, Pigeon, dart:ffi; release flavors + signing | references/platform-integration.md | Calling Android/iOS native APIs, wrapping a C library, channel-related crashes, or setting up flavors/signing for release |
| Testing: widget tests, ProviderScope/Bloc overrides, goldens, integration_test, patrol | references/testing.md | Writing or fixing any Flutter test, flaky pumpAndSettle, mocking state/channels, device-level E2E |
Key Patterns
Riverpod code-gen AsyncNotifier (the default for async app state):
@riverpod
class Cart extends _$Cart {
@override
Future<List<CartItem>> build() => ref.watch(cartRepoProvider).fetch();
Future<void> add(Product p) async {
state = const AsyncLoading();
state = await AsyncValue.guard(() async {
await ref.read(cartRepoProvider).add(p);
return ref.read(cartRepoProvider).fetch();
});
}
}
// In build(): exhaustive handling, no .when soup needed in Dart 3
switch (ref.watch(cartProvider)) {
AsyncData(:final value) => CartList(items: value),
AsyncError(:final error) => ErrorView(error),
_ => const CircularProgressIndicator(),
}Sealed state + exhaustive switch (Bloc or plain):
sealed class LoginState {}
final class LoginIdle extends LoginState {}
final class LoginLoading extends LoginState {}
final class LoginFailure extends LoginState { LoginFailure(this.message); final String message; }
final class LoginSuccess extends LoginState { LoginSuccess(this.user); final User user; }
// switch (state) { ... } - compiler errors if a case is missed; no `default`.GoRouter auth redirect that re-evaluates on state change:
final router = GoRouter(
refreshListenable: authNotifier, // re-run redirect when auth changes
redirect: (context, state) {
final loggedIn = authNotifier.isLoggedIn;
final loggingIn = state.matchedLocation == '/login';
if (!loggedIn && !loggingIn) return '/login?from=${state.matchedLocation}';
if (loggedIn && loggingIn) return state.uri.queryParameters['from'] ?? '/';
return null; // no redirect
},
routes: [/* ... */],
);Rebuild only what changed:
// Watch one field, not the whole object:
final name = ref.watch(userProvider.select((u) => u.name));
// Scoped MediaQuery lookups (3.10+): rebuilds only on size changes
final size = MediaQuery.sizeOf(context);Common Mistakes
- Writing pre-code-gen Riverpod (
StateProvider,StateNotifierProvider,ChangeNotifierProvider) in projects usingriverpod_generator. Use@riverpodclasses (Notifier/AsyncNotifier);StateNotifieris legacy and removed from Riverpod 3's core. ref.watchinside callbacks (onPressed, event handlers).watchis forbuild; useref.readin callbacks andref.listenfor side effects like snackbars/navigation.- Using
BuildContextacross async gaps without acontext.mountedguard - a real crash and an analyzer lint (use_build_context_synchronously). Checkif (!context.mounted) return;after everyawaitbefore touching context. - Deprecated APIs from training data:
WillPopScope→PopScope(canPop:, onPopInvokedWithResult:);Color.withOpacity→withValues(alpha:);MediaQuery.of(context).size→MediaQuery.sizeOf(context);RaisedButton/FlatButton→ElevatedButton/TextButton;accentColor→colorScheme.secondary. - Mixing
Navigator.pushwith GoRouter - the imperative push bypasses the router's URL/state and breaks deep links and web URLs. Usecontext.go/context.push(and know the difference:goreplaces the stack per route hierarchy,pushstacks). ListView(children: [...])for long/unbounded lists - builds everything eagerly. UseListView.builder/.separated(withitemExtentorprototypeItemwhen heights are uniform), and give list items stableValueKeys when reordering/removing.- Null-safety by force: sprinkling
!andlateto silence the compiler. Prefer promotion via patterns (if (user case User(:final email))),??/?., and making fields non-nullable at construction; each!and non-initializedlateis a runtime crash waiting. pumpAndSettlein tests with repeating animations (shimmer,CircularProgressIndicator) - times out. Pump fixed durations instead (await tester.pump(const Duration(milliseconds: 300))).
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

