I have a column inside a ListTile like this:
return ListTile(
//contentPadding: EdgeInsets.symmetric(horizontal: 20.0, vertical: 20.0),
leading: Column(
mainAxisAlignment: MainAxisAlignment.center,
crossAxisAlignment: CrossAxisAlignment.center,
children: <Widget>[
Container(
padding: EdgeInsets.only(right: 12.0),
decoration: BoxDecoration(
border: Border(
right: BorderSide(
width: 1.0,
))),
child: Column(
children: <Widget>[
Text('Hello'),
],
),
)
]),
...more code
}
Shouldn't this center the container vertically? I am doing something similar with a column and space around in the title section and it works fine.