flutter
Skill15 starsChanged 42 days agoMITView on GitHub
Expert Flutter assistance covering declarative widget trees, state management (Bloc/Riverpod/Provider), custom painters, platform channels, and cross-platform compilation. Use when building iOS, Android, web, and desktop applications using Flutter and Dart.
11 other projects use a version of this.
Adopted by
Most recently taken up by
- its-ash/skillstheir own version, first seen Nov 1, 2026
- nimadorostkar/Claude-Skills-collectiontheir own version, first seen Oct 13, 2026
- Mindrally/skillstheir own version, first seen Oct 8, 2026
- alinaqi/claude-bootstraptheir own version, first seen Oct 8, 2026
- Evan-Kim2028/agent-skillstheir own version, first seen Aug 16, 2026
- guocheng1378/android-reverse-skillstheir own version, first seen Aug 6, 2026
Other versions11 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 11
- alinaqi/maggy★ 711same name
- alinaqi/claude-bootstrap★ 708same name
- Mindrally/skills★ 275same name
- nimadorostkar/Claude-Skills-collection★ 33same name
- guocheng1378/android-reverse-skills★ 4same name
- ffsshhttiikk/opencode-agents-skills★ 2same name
- cocart-headless/cocart-skills★ 1same name
- Evan-Kim2028/agent-skills★ 1same name
- nguyenchilong/claude-skills-fullstacks★ 1same name
- its-ash/skills★ 0same name
1 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 repository350 other files it gives its agents.
- airflowSkill
- catboostSkill
- claudeSkill
- comfyuiSkill
- cursor-aiSkill
- dalleSkill
- daskSkill
- dbtSkill
- deepseekSkill
- fastaiSkill
- geminiSkill
- github-copilotSkill
- huggingfaceSkill
- jaxSkill
- jupyterSkill
- kerasSkill
- langchainSkill
- lightgbmSkill
- llamaindexSkill
- llamaSkill
- matplotlibSkill
- midjourneySkill
- mistralSkill
- mlflowSkill
- nltkSkill
- numpySkill
- ollamaSkill
- openai-gptSkill
- opencvSkill
- pandasSkill
- perplexitySkill
- plotlySkill
- polarsSkill
- pytorchSkill
- raySkill
- scikit-learnSkill
- seabornSkill
- spacySkill
- sparkSkill
- stable-diffusionSkill
- tensorflowSkill
- vaexSkill
- weights-biasesSkill
- whisperSkill
- xgboostSkill
- api-gatewaySkill
- clean-architectureSkill
- cqrsSkill
- domain-driven-designSkill
- event-drivenSkill
- event-sourcingSkill
- graphqlSkill
- grpcSkill
- hexagonalSkill
- microservicesSkill
- modular-monolithSkill
- monolithSkill
- rest-apiSkill
- sagaSkill
- serverlessSkill
- The first 60 shown.
The file
Files
Flutter
Flutter is Google's UI toolkit for building natively compiled applications for mobile, web, and desktop from a single codebase. It uses the Dart programming language and the Skia/Impeller graphics engine to render high-performance, pixel-perfect UIs.
When to Use
- High-Fidelity Cross-Platform Apps: Building pixel-perfect, hardware-accelerated applications for iOS, Android, Web, and Desktop from a single Dart codebase.
- Custom Brand & Animation Experiences: Creating bespoke UI widgets, smooth transitions, and complex interactive canvases using Impeller rendering engine.
- Fast Prototyping & Iteration: Utilizing sub-second Stateful Hot Reload to iterate rapidly on UI components and application logic.
- Unified Enterprise Applications: Maintaining unified multi-screen architectures spanning mobile tablets, point-of-sale systems, and web consoles.
Quick Start
// main.dart
import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:go_router/go_router.dart';
void main() {
runApp(const MyApp());
}
// Router configuration
final _router = GoRouter(
routes: [
GoRoute(
path: '/',
builder: (context, state) => const HomePage(),
),
],
);
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return BlocProvider(
create: (_) => CounterCubit(),
child: MaterialApp.router(
routerConfig: _router,
theme: ThemeData(useMaterial3: true, colorSchemeSeed: Colors.blue),
),
);
}
}
// Bloc/Cubit Logic
class CounterCubit extends Cubit<int> {
CounterCubit() : super(0);
void increment() => emit(state + 1);
}
class HomePage extends StatelessWidget {
const HomePage({super.key});
@override
Widget build(BuildContext context) {
// Access state via context.read/watch or BlocBuilder
final count = context.select((CounterCubit cubit) => cubit.state);
return Scaffold(
appBar: AppBar(title: const Text('Flutter & Bloc')),
body: Center(
child: Text(
'Count: $count',
style: Theme.of(context).textTheme.headlineMedium,
),
),
floatingActionButton: FloatingActionButton(
onPressed: () => context.read<CounterCubit>().increment(),
child: const Icon(Icons.add),
),
);
}
}Core Concepts
Widget Tree, Element Tree & RenderObject Architecture
Flutter bypasses platform WebViews and OEM widgets, rendering directly via the Impeller graphics engine:
// Declarative immutable widget tree
class MetricCard extends StatelessWidget {
final String label;
final double value;
const MetricCard({super.key, required this.label, required this.value});
@override
Widget build(BuildContext context) {
return Container(
padding: const EdgeInsets.all(16.0),
decoration: BoxDecoration(
color: Theme.of(context).colorScheme.surfaceVariant,
borderRadius: BorderRadius.circular(12),
),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(label, style: Theme.of(context).textTheme.bodySmall),
const SizedBox(height: 4),
Text('\$${value.toStringAsFixed(2)}', style: Theme.of(context).textTheme.headlineMedium),
],
),
);
}
}Predictable State Management with Bloc / Cubit
Decouples UI layout from reactive business logic via event-driven streams:
// State Definition
sealed class CounterState {}
class CounterValue extends CounterState { final int count; CounterValue(this.count); }
// Cubit Logic
class CounterCubit extends Cubit<CounterState> {
CounterCubit() : super(CounterValue(0));
void increment() {
final current = (state as CounterValue).count;
emit(CounterValue(current + 1));
}
}
// Consumed in UI via BlocBuilder
BlocBuilder<CounterCubit, CounterState>(
builder: (context, state) {
return Text('Count: ${(state as CounterValue).count}');
},
)Platform Channels for Native Integration
Bidirectional asynchronous message passing between Dart and platform-native Swift/Kotlin:
class BatteryService {
static const _channel = MethodChannel('com.example.app/battery');
static Future<int> getBatteryLevel() async {
try {
final int level = await _channel.invokeMethod('getBatteryLevel');
return level;
} on PlatformException catch (e) {
return -1;
}
}
}Common Patterns
Feature-First Architecture
Problem: Layer-first project organization (controllers/, views/) becoming unmaintainable as apps scale.
Solution: Organize files into cohesive domain feature modules:
lib/
src/
features/
auth/
data/
domain/
presentation/
bloc/
views/
products/
shared/
components/
constants/
app.dart
main.dartClean Architecture with Repositories
Problem: Directly coupling UI widget code to HTTP clients or database drivers breaks modularity and makes unit testing difficult.
Solution:
abstract interface class UserRepository {
Future<User> getUser(String id);
}
class UserRepositoryImpl implements UserRepository {
final UserRemoteDataSource remoteDataSource;
final UserLocalDataSource localDataSource;
UserRepositoryImpl({required this.remoteDataSource, required this.localDataSource});
@override
Future<User> getUser(String id) async {
try {
final userModel = await remoteDataSource.fetchUser(id);
await localDataSource.cacheUser(userModel);
return userModel.toEntity();
} catch (_) {
return await localDataSource.getCachedUser(id);
}
}
}Best Practices
Do:
- Leverage
constConstructors Everywhere: Mark immutable widgets withconstto allow Flutter to skip unnecessary widget rebuilds. - Rely on the Impeller Engine: Ensure modern Impeller rendering is active on iOS and Android to prevent shader compilation jank.
- Split Large Build Methods into Subwidgets: Extract deep widget hierarchies into dedicated
StatelessWidgetclasses for clean rebuild scopes. - Implement Strict Lint Rules: Enforce
flutter_lintsorvery_good_analysisinanalysis_options.yaml.
Don't:
- Perform async operations directly inside
build(): Never call HTTP requests or database operations in build methods. - Overuse
setStatein Root Widgets: Keep state local; triggering top-levelsetStateforces excessive full-tree recomposition. - Hardcode fixed pixel sizes for layouts: Use
LayoutBuilder,MediaQuery, and Flexible/Expanded widgets for responsive scaling.
Troubleshooting
| Error | Cause | Solution |
RenderFlex overflowed by ... pixels | Content is too wide/tall for the parent. | Wrap in Expanded, Flexible, or SingleChildScrollView. |
ProviderNotFoundException | Reading a Bloc without a provider up the tree. | Ensure BlocProvider wraps the widget trying to access it. |
LateInitializationError | Accessing a late variable before assignment. | Ensure generic initialization or use nullable types locally. |
Vertical viewport was given unbounded height | ListView inside Column without constraints. | Wrap ListView in Expanded or SizedBox. |
References
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.

