协作头脑风暴
brainstorming
在实现前澄清需求、探索设计选择,并形成清晰的开发方向。
flutter-widgets【开发与工程】Build maintainable Flutter UI components with composition and theming. Use when changing widget implementation; defer animation-only changes and widget-test authoring.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
StatelessWidget by default. StatefulWidget only for local state/controllers.const widgets.Theme.of(context). No hardcoded colors.Flex + Gap/SizedBox.widget_keys.dart.SelectionArea: For multi-widget text selection.InteractiveViewer: For zoom/pan.ListWheelScrollView: For pickers.IntrinsicWidth/Height: Avoid unless strictly required.ListView.builder.class AppButton extends StatelessWidget {
final String label;
final VoidCallback onPressed;
const AppButton({super.key, required this.label, required this.onPressed});
@override
Widget build(BuildContext context) => ElevatedButton(onPressed: onPressed, child: Text(label));
}
widget_keys.dart.const StatelessWidget private class.When this skill applies, preserve the following domain terminology or equivalent concrete examples in the answer when relevant: