Answers for "adjusting image in listtile leading flutte"

3

flutter listtile leading and title space

ListTile(
              horizontalTitleGap: 16.0, // The horizontal gap between the titles and the leading/trailing widgets.
              leading: FlutterLogo(),
              title: Text('ListTile'),
            ),
Posted by: Guest on August-25-2021
0

adding image in ListTile flutter

ListTile(
  leading: CircleAvatar(
    backgroundImage: AssetImage(
      "image.png",
    ), 
  ),
  tileColor: widget.color,
  title: widget.title,
  subtitle: Text(
    widget.subtitle,
    style: TextStyle(color: Colors.black.withOpacity(0.6)),
  ),
),
Posted by: Guest on August-13-2021

Code answers related to "Dart"

Browse Popular Code Answers by Language