Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change the text size of a List Tile Widget?

I have been looking for a way to change the text size of my List Tile Widget,

like image 985
macphail magwira Avatar asked Oct 29 '25 12:10

macphail magwira


1 Answers

You have to pass the TextStyle as argument to Text widget. Here is the example.

ListTile(
    leading: FlutterLogo(size: 72.0),
    title: Text('Three-line ListTile'),
    subtitle: Text(
         'A sufficiently long subtitle warrants three lines.',
         style: TextStyle(
              fontSize: 20.0,
              color: Colors.red,
              fontWeight: FontWeight.w600,
         ),
    ),
    trailing: Icon(Icons.more_vert),
    isThreeLine: true,
),

from the TextStyle you can change many styles of Text widget like fontWeigth, textBaseLine, letterSpacing etc.

like image 186
Kiran Maniya Avatar answered Nov 01 '25 01:11

Kiran Maniya