Use LayoutBuilder to detect whether parent provides bounded width. When fullWidth=true in an unbounded context (e.g. Row without Expanded), gracefully fall back to content-sized width instead of forcing SizedBox(width: double.infinity) which triggers "BoxConstraints forces an infinite width" assertion. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| android | ||
| ios | ||
| lib | ||
| .gitignore | ||
| .metadata | ||
| analysis_options.yaml | ||
| pubspec.yaml | ||