executing-plans
executing-plans
Use when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available
flutter-expertiseExpert knowledge in Flutter, focusing on State Management and Render Tree optimization.
Independent GitHub snapshot · Automated classification · Original documentation governs
ConsumerWidget or ref.watch carefully to limit widget rebuilds. Keep providers small and focused.BlocBuilder with buildWhen to prevent unnecessary rebuilds. Maintain distinct states (Loading, Success, Error).// Riverpod Example
final counterProvider = StateProvider((ref) => 0);
class CounterText extends ConsumerWidget {
@override
Widget build(BuildContext context, WidgetRef ref) {
// Only rebuilds when counterProvider changes
final count = ref.watch(counterProvider);
return Text('Count: $count');
}
}
const StatelessWidgets.RepaintBoundary to isolate widgets that paint frequently (e.g., animations).Opacity and ClipRRect when simpler alternatives exist.%%{init: {"theme": "default", "flowchart": {"useMaxWidth": true}}}%%
flowchart TD
A[Build Method Triggered] --> B{Is Widget Const?}
B -- Yes --> C[Skip Rebuild]
B -- No --> D[Evaluate State Changes]
D --> E{Use RepaintBoundary?}
E -- Yes --> F[Paint Isolated Area]
E -- No --> G[Paint Entire Tree]