I would like to change the stacking order in listView.builder so that Item 0 should be placed at the top of the "stack" and the last item of the list - at the bottom.
Here is the default behavior
default behavior
Here is what I want to achieve
My code
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text('ListView stacking'),
),
body: ListView.builder(
itemCount: 20,
itemBuilder: (context, index) {
return Align(
child: Card(
color: Colors.primaries[random.nextInt(Colors.primaries.length)]
[random.nextInt(9) * 100],
child: Container(
width: 100,
child: Text('Item $index', style: TextStyle(fontSize: 24)),
),
),
heightFactor: 0.6,
);
},
));
}


