协作头脑风暴
brainstorming
在实现前澄清需求、探索设计选择,并形成清晰的开发方向。
flutter-idiomatic-flutter【开发与工程】Compose modern Flutter layouts and widgets idiomatically. Use for widget trees, layout constraints, mounted safety, and UI composition—not BLoC state management, routing, dependency injection, or tests.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
if (context.mounted) before using BuildContext after await.spacing parameter on Row/Column (Flutter 3.27+) over inserting SizedBox/Gap between children. On earlier Flutter versions, use Gap(n) instead — spacing will not compile.Gap(n) or SizedBox only when spacing cannot express the layout (e.g., conditional gaps).const SizedBox.shrink().IntrinsicWidth/Height; use Stack + FractionallySizedBox for overlays.Gap(n) or SizedBox over Padding for simple gaps.ColoredBox/Padding/DecoratedBox instead of Container when possible.Theme.of(context) access.context.mounted to prevent crashes across async gaps.const StatelessWidget for proper rebuild control.const SizedBox.shrink().