Skip to content
Development
Skill

/flutter-performance

Optimize Flutter widget rebuilds, memory usage, rendering, and scrolling performance. Use when diagnosing jank, reducing rebuilds, or improving list performance—not performance tests, monitoring setup, or API optimization.

From plugin
agent-skills-standard
583200 skills21 agents33 commands1 MCP

Claude Code

$ npx -y skills add hoangnguyen0403/agent-skills-standard --skill flutter-performance --agent claude-code

SKILL.md

flutter-performance.SKILL.md
name: flutter-performance
description: Optimize Flutter widget rebuilds, memory usage, rendering, and scrolling performance. Use when diagnosing jank, reducing rebuilds, or improving list performance—not performance tests, monitoring setup, or API optimization.
metadata:
  triggers:
    files:
    - 'lib/presentation/**'
    - 'pubspec.yaml'
    - 'ListView.builder'
    keywords:
    - const
    - buildWhen
    - Isolate
    - RepaintBoundary

Performance

**Priority: P1 (HIGH)**

  • **Rebuilds**: Use `const` widgets and `buildWhen` / `select` for granular updates.
  • **Lists**: Always use `ListView.builder` for item recycling.
  • **Heavy Tasks**: Use `compute()` or `Isolates` for parsing/logic.
  • **Repaints**: Use `RepaintBoundary` for complex animations. Use `debugRepaintRainbowEnabled` to debug.
  • **Images**: Use `CachedNetworkImage` + `memCacheWidth`. `precachePicture` for SVGs.
  • **Keys**: Provide `ValueKey` for 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 `build` methods free of heavy work; move logic to BLoC/Application.
  • **Image Resizing**: Always set `maxWidth`/`maxHeight` when loading images.

Anti-Patterns

  • **No Root `setState()`**: Use `BlocBuilder` with `buildWhen` or `context.select()` for granular updates
  • **No Heavy Business in `build()`**: Move sorting/filtering/heavy logic to BLoC or `compute()`
  • **No Non-`const` Leaf Nodes**: Apply `const` to all static widgets to skip unnecessary reconciliation
  • **No Large `Column` Lists**: Use `ListView.builder` for efficient item recycling in large lists
BlocBuilder<UserBloc, UserState>(
  buildWhen: (p, c) => p.id != c.id,
  builder: (context, state) => Text(state.name),
)
Read more
@hoangnguyen0403
Ships withagent-skills-standard

The portable standards layer for AI coding agents. Sync once, then work in your own runtime.

583200 skills21 agents1 MCP
Get the whole plugin

Stars on GitHub

Momentum

stars in total
583
Star history of hoangnguyen0403/agent-skills-standard on GitHub, a chart by star-history.com

Other skills on agent-skills-standard.

More skills from other plugins.

brainstorming
Auto-invoked

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…

@obra@obraInstall Skill
ask-matt

ask-matt

Ask which skill or flow fits your situation. A router over the skills in this repo.

skills10d309k
@mattpocock@mattpocockInstall Skill
accessibility
Auto-invoked

accessibility

Design, implement, and audit accessible UI to WCAG 2.2 Level AA across Web, iOS, and Android — semantic ARIA roles and labels,…

ecc11d293k
@affaan-m@affaan-mInstall Skill
compiler-commit

compiler-commit

Use when you want to verify compiler changes and commit with the correct convention. Runs tests, lint, and format, then commits…

react1d252k
@facebook@facebookInstall Skill

Questions about flutter-performance.

Which coding agents can use flutter-performance?
flutter-performance installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.