协作头脑风暴
brainstorming
在实现前澄清需求、探索设计选择,并形成清晰的开发方向。
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.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
const widgets and buildWhen / select for granular updates.ListView.builder for item recycling.compute() or Isolates for parsing/logic.RepaintBoundary for complex animations. Use debugRepaintRainbowEnabled to debug.CachedNetworkImage + memCacheWidth. precachePicture for SVGs.ValueKey for list items and stable IDs for reconciliation.dispose().build methods free of heavy work; move logic to BLoC/Application.maxWidth/maxHeight when loading images.setState(): Use BlocBuilder with buildWhen or context.select() for granular updatesbuild(): Move sorting/filtering/heavy logic to BLoC or compute()const Leaf Nodes: Apply const to all static widgets to skip unnecessary reconciliationColumn Lists: Use ListView.builder for efficient item recycling in large listsBlocBuilder<UserBloc, UserState>(
buildWhen: (p, c) => p.id != c.id,
builder: (context, state) => Text(state.name),
)