Remove padding from ListTile between leading and title. You can use Align and specify the Alignment. Here is an example:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 | import 'package:flutter/material.dart'; class TextIcon extends StatelessWidget { final String title; final IconData icon; final String button; const TextIcon({Key key, this.title, this.icon, this.button}) : super(key: key); @override Widget build(BuildContext context) { final theme = Theme.of(context); return Padding( padding: const EdgeInsets.only(bottom: 24.0), child: Row( mainAxisAlignment: MainAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.center, children: <Widget>[ Icon( icon, size: 18, ), SizedBox(width: 5), Text( title, style: theme.textTheme.subhead.copyWith(fontSize: 13), ), ], ), ); } } |
If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.