Apart from reversing the list, another solution could be putting the ListView
inside an Align
widget with alignment: Alignment.topCenter
. Also shrinkWrap: true
needed inside ListView
.
Align(
alignment: Alignment.topCenter,
child: ListView.builder(
reverse: true,
shrinkWrap: true,
...
...
)
)
沒有留言:
發佈留言