金色时刻 · 15:48
让好资源,触手可及
AGENT SKILL

performance

performance 是面向软件开发的 Agent Skill,来自 HoangNguyen0403/agent-skills-standard。查看技能说明、操作步骤与使用约定,并通过原项目了解详细用法。

Optimization standards for rebuilds and memory.

SKILL.md

下载 MD ↓
nameFlutter Performance
descriptionOptimization standards for rebuilds and memory.
metadata{"labels": ["performance"], "triggers": {"files": ["lib/presentation/**", "pubspec.yaml"], "keywords": ["const", "buildWhen", "ListView.builder", "Isolate", "RepaintBoundary"]}}

Performance

Priority: P1 (OPERATIONAL)

Performance optimization techniques for smooth 60fps Flutter applications.

  • 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.
BlocBuilder<UserBloc, UserState>(
  buildWhen: (p, c) => p.id != c.id,
  builder: (context, state) => Text(state.name),
)

来源:HoangNguyen0403/agent-skills-standard · MIT 许可 · 许可原文 · MD 为来源页保存的历史版本