How can I add a space between title
and subtitle
in ListTile
?
ListTile(
title: Text(" xxxxxxxx"),
subtitle: Text("From: to"),
),
CodePudding user response:
ListTile(
title: Padding(
padding: const EdgeInsets.only(bottom: 10.0),
child: Text(" xxxxxxxx"),,
),
subtitle:Text("From: to"),
)
CodePudding user response:
You can wrap your Text widget of title
into Padding widget and pass padding
bottom
of your desired gap like below :
ListTile(
title: Padding(
padding: const EdgeInsets.only(bottom: 15.0),
child: Text("title"),
),
subtitle: Text("Subtitle"),
)