I've looked for an answer all over google and s.o and couldn't find one to my likin'.
I'm using a Stack widget as my page layout. Inside that Stack, I'm positioning all the child widgets with Align widget. I've tried to create a ListView widget under my Align child, but its cards (children) are ignoring the ListView alignment at the alignment value I set to the List to start from.
Align(
alignment: Alignment(0, -0.28),
child: Divider(
color: Color.fromARGB(50, 255, 255, 255),
),
),
Align(
alignment: Alignment(0, -0.20),
child: ListView(
children: <Widget>[
Card(
child: ListTile(
leading: Icon(some_icon),
title: Text("blabla"),
)),
],
),
),
I would expect the ListView items to start under my Divider, as the value set for the vertical alingement is -0.20 which is lower than the Divider alignment (-0.28). But, here's how it looks:
If I remove the ListView and set the Card widget as the Align direct child, the positioning is fine. Now, as I read in the documentation, the Align widget alignment values are respectable by it's only child, so how would I achieve the same for the ListView children (Rows/ListTiles/Card etc)?