Flutter Performance
Best practices for Flutter performance, focusing on efficient rebuilds, memory management, and smooth rendering.
Install
mkdir -p .claude/skills/flutter-performance && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/15552" && unzip -o skill.zip -d .claude/skills/flutter-performance && rm skill.zipInstalls to .claude/skills/flutter-performance
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
Optimization standards for rebuilds and memory.Key capabilities
- →Use `const` widgets and `buildWhen` / `select` for granular UI updates
- →Employ `ListView.builder` for efficient item recycling in lists
- →Utilize `compute()` or `Isolates` for heavy parsing or logic tasks
- →Apply `RepaintBoundary` for complex animations to optimize repaints
- →Use `CachedNetworkImage` with `memCacheWidth` for image loading
- →Provide `ValueKey` for list items and stable IDs for reconciliation
How it works
This skill provides optimization standards for Flutter performance by guiding the use of `const` widgets, `ListView.builder`, and `Isolates` to reduce rebuilds and manage memory.
Inputs & outputs
When to use Flutter Performance
- →Optimizing list rendering
- →Reducing UI rebuilds
- →Managing memory leaks
- →Debugging rendering issues
About this skill
Performance
Priority: P1 (OPERATIONAL)
Performance optimization techniques for smooth 60fps Flutter applications.
- Rebuilds: Use
constwidgets andbuildWhen/selectfor granular updates. - Lists: Always use
ListView.builderfor item recycling. - Heavy Tasks: Use
compute()orIsolatesfor parsing/logic. - Repaints: Use
RepaintBoundaryfor complex animations. UsedebugRepaintRainbowEnabledto debug. - Images: Use
CachedNetworkImage+memCacheWidth.precachePicturefor SVGs. - Keys: Provide
ValueKeyfor list items and stable IDs for reconciliation. - Resource Cleanup: Dispose controllers/streams in
dispose(). - Pagination: Default to 20 items per page for network lists.
- Build Purity: Keep
buildmethods free of heavy work; move logic to BLoC/Application. - Image Resizing: Always set
maxWidth/maxHeightwhen loading images.
🚫 Anti-Patterns
- Large Rebuilds:
**No SetState at Root**: Use granular builders (BlocBuilder, Consumer). - Logic in Build:
**No Heavy Work in body**: Perform parsing/sorting in the Business Layer. - Missing Const:
**No Dynamic Leaf Widgets**: Use const where possible.
BlocBuilder<UserBloc, UserState>(
buildWhen: (p, c) => p.id != c.id,
builder: (context, state) => Text(state.name),
)
When not to use it
- →When performing `SetState` at the root of the widget tree
- →When placing heavy work directly within `build` methods
- →When omitting `const` where possible for static widgets
Limitations
- →This skill does not support `SetState` at the root.
- →This skill does not recommend heavy work in `build` methods.
- →This skill does not recommend omitting `const` for static widgets.
How it compares
This approach systematically applies specific Flutter optimization techniques, leading to smoother 60fps applications, unlike general coding practices.
Compared to similar skills
Flutter Performance side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| Flutter Performance (this skill) | 0 | 5mo | No flags | Intermediate |
| flutter-expert | 73 | 4mo | No flags | Advanced |
| mobile_engineer | 0 | 2mo | No flags | Advanced |
| flutter-development | 1,555 | 5mo | No flags | Intermediate |
Try saying
Example prompts that trigger this skill in your AI assistant.
You might also like
flutter-expert
sickn33
Master Flutter development with Dart 3, advanced widgets, and multi-platform deployment. Handles state management, animations, testing, and performance optimization for mobile, web, desktop, and embedded platforms. Use PROACTIVELY for Flutter architecture, UI implementation, or cross-platform features.
mobile_engineer
Sorravit
Act as a Senior Mobile Engineer. Use when user asks about React Native, Flutter, iOS, Android development, or mobile architecture.
flutter-development
aj-geddes
Build beautiful cross-platform mobile apps with Flutter and Dart. Covers widgets, state management with Provider/BLoC, navigation, API integration, and material design.
mobile-games
davila7
Mobile game development principles. Touch input, battery, performance, app stores.
flutter
alinaqi
Flutter development with Riverpod state management, Freezed, go_router, and mocktail testing
mobile-developer
sickn33
Develop React Native, Flutter, or native mobile apps with modern architecture patterns. Masters cross-platform development, native integrations, offline sync, and app store optimization. Use PROACTIVELY for mobile features, cross-platform code, or app optimization.