Did you know?
OverflowBar makes it easy to layout your widgets in a row unless they overflow the available horizontal space, in which case they're arranged as a column.
Both the horizontal and vertical spacing are customizable, as well as the overflow alignment. 👇
Note that OverflowBar
differs from the Wrap
widget:
- when
Wrap
overflows, it keeps adding items horizontally. - when
OverflowBar
overflows, it makes the entire layout vertical.
Different widgets for different use cases. 👍
For more info and sample code on how to use the OverflowBar
widget, check the official docs:
Happy coding!