import 'package:flutter/material.dart';
class ListTileScreen extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text('ListTile Example'),
),
body: ListView(
children: [
ListTile(
leading: Icon(Icons.star),
title: Text('Item 1'),
subtitle: Text('Subtitle 1'),
trailing: Icon(Icons.arrow_forward),
),
ListTile(
leading: Icon(Icons.star),
title: Text('Item 2'),
subtitle: Text('Subtitle 2'),
trailing: Icon(Icons.arrow_forward),
),
ListTile(
leading: Icon(Icons.star),
title: Text('Item 3'),
subtitle: Text('Subtitle 3'),
trailing: Icon(Icons.arrow_forward),
),
],
),
);
}
}We use a ListView to stack the ListTile widgets vertically. Each ListTile has a leading icon on the left, a title text, a smaller subtitle text below the title, and a trailing icon on the right. The AppBar shows the screen title. This layout is common for lists where each item has an icon, main text, extra info, and a navigation arrow.