I have a Column of items like this:
Column(
children: [
...items,
Spacer(),
Footer(),
],
)
However, the items
list may be dynamic, which makes necessary use a ListView
instead of Column
. The only problem is that my Footer
was separated with anSpacer
, the Spacer
widget will throw error if its used in a ListView.
What can I use to give the effect of a Column
to my ListView
when are just a few items that not filled all the screen?
I found this solution: