I've a ListView.builder on my page which wraps Columns inside it according to various parameters.
My code looks something like this :
ListView.builder(
itemCount: sortedList.length,
itemBuilder: (BuildContext context, int index) {
Render Column 1,
Render Column 2,
Render Column 3
}
My columns look something like this :
Column(
mainAxisSize: MainAxisSize.min,
children: [
Child 1,
Child 2,
]
)
What I want ?
Now coming over to Column 3, I want it's one child to show at the top and one at the bottom of the screen. Something like this:
As you can see, I want Column 3 to take all the page's available space and then it can align one of its child to the top and one to the bottom inside itself. I can do this by simply adding MainAxisAlignment.spaceBetween but right now I don't know how can I allow this Column to take all the available space inside of this ListView.
Can anyone please tell me what we can do here? Thanks in advance!