listtile flutter example
Example 1: leading image flutter
ListTile(
leading: CircleAvatar(
backgroundImage: Image.file(file),
child: GestureDetector(onTap: () {}),
),
// (...)
);
Example 2: flutter list tile
ListTile(
leading: const Icon(Icons.flight_land),
title: const Text("Trix's airplane"),
subtitle: const Text('The airplane is only in Act II.'),
onTap: () => print("ListTile")
)
Example 3: how to put two trailing icons in list tile flutter
Adding mainAxisSize: MainAxisSize.min to the Row() instance fixes the issue.