1 | initial version |
This can occur when the container is wrapped in a widget that does not constrain its dimensions, such as a Expanded
or Flexible
widget. The container will then expand to fill all available space in that dimension. To avoid this, make sure to wrap the container in a widget that constrains its dimensions, such as a SizedBox
or ConstrainedBox
.