How to change the text size of a List Tile Widget?
2,603
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.
Author by
macphail magwira
Updated on December 21, 2022Comments
-
macphail magwira 2 days
I have been looking for a way to change the text size of my List Tile Widget,
-
Matteo Toma 10 months, is missing after text in line 5, please correct it.