If the content is less than the width of the screen and the ExpandText is wrapped in an Expand then the text and expand arrow are centered in the middle of theExpandText.
I expected behaviour would be to start the text at the start and center the expand in the middle of the widget.
To make the children of the column expand to the width of the parent you need to add crossAxisAlignment: CrossAxisAlignment.stretch to the Column.
This could either be an optional default parameter as CrossAxisAlignment.stretch can cause a layout error if there is not a wrapping Expanded as the width becomes unbounded.
If the content is less than the width of the screen and the
ExpandText
is wrapped in anExpand
then the text and expand arrow are centered in the middle of theExpandText
.I expected behaviour would be to start the text at the start and center the expand in the middle of the widget.
To make the children of the column expand to the width of the parent you need to add
crossAxisAlignment: CrossAxisAlignment.stretch
to the Column.This could either be an optional default parameter as
CrossAxisAlignment.stretch
can cause a layout error if there is not a wrapping Expanded as the width becomes unbounded.