Both Creates a widget that controls how a child of a [Row], [Column], or [Flex] flexes.
If you come from a CSS background, this is related to flexbox
The only difference between Expanded and Flexible is Expanded is Flexible that doesnt have a fit property
Example
Flexible:
Flexible(
flex: 3,
fit: FlexFit.tight,)
Expanded:
`Expanded(
flex: 3
//fit: FlexFit.tight,)
The fit property in Expanded is commented.
Both use flex the property
Top comments (1)
Thank you so much for this.