Remove Padding from List Tile Between Leading and Title

I need to remove some padding between leading Widget and title Widget in a ListTile. It has too much blank spaces. Is there a way to do that? The code that I am using for that is this:

ListTile _getActionMenu(String text, IconData icon, Function() onTap) {
  return new ListTile(
    leading: new Icon(icon),
    title: new Text(text),
    onTap: onTap,
  );
}

This Post Has One Comment

  1. No Fault

    You can use Align and specify the Alignment.

    ListTile _getActionMenu(String text, IconData icon, Function() onTap) {
    return new ListTile(
    leading: new Icon(icon),
    title: Align(
    child: new Text(text),
    alignment: Alignment(-1.2, 0),
    ),
    onTap: onTap,
    );
    }

Leave a Reply