// Some code
class Lesson03a extends StatelessWidget {
const Lesson03a({super.key});
@override
Widget build(BuildContext context) {
return Scaffold(
backgroundColor: Color(0xFFF4F5F9),
appBar: AppBar(
backgroundColor: Color(0xFFF4F5F9),
title: Text(
'Favorite',
style: TextStyle(fontSize: 20, fontWeight: FontWeight.bold),
),
centerTitle: true,
),
body: ListView(
children: [
Divider(),
ListTile(
onTap: () {},
leading: Image.asset('assets/sprite.png'),
title: Padding(
padding: const EdgeInsets.only(left: 25),
child: Text(
'Sprite can',
style: TextStyle(
fontSize: 16,
fontWeight: FontWeight.w600,
color: Color(0xFF181725),
),
),
),
subtitle: Padding(
padding: const EdgeInsets.only(left: 25),
child: Text(
'325ml, Price',
style: TextStyle(
fontSize: 14,
fontWeight: FontWeight.w400,
color: Color(0xFF7C7C7C),
),
),
),
trailing: Row(
mainAxisSize: MainAxisSize.min,
children: [
Text(
'\$1.50',
style: TextStyle(
fontWeight: FontWeight.w600,
fontSize: 16,
color: Color(0xFF181725),
),
),
Icon(Icons.arrow_forward_ios, color: Color(0xFF181725)),
],
),
),
Padding(
padding: const EdgeInsets.symmetric(horizontal: 25.2),
child: Divider(),
),
ListTile(
onTap: () {},
leading: Image.asset('assets/cola.png'),
title: Padding(
padding: const EdgeInsets.only(left: 25),
child: Text(
'Diet coke',
style: TextStyle(
fontSize: 16,
fontWeight: FontWeight.w600,
color: Color(0xFF181725),
),
),
),
subtitle: Padding(
padding: const EdgeInsets.only(left: 25),
child: Text(
'355ml, Price',
style: TextStyle(
fontSize: 14,
fontWeight: FontWeight.w400,
color: Color(0xFF7C7C7C),
),
),
),
trailing: Row(
mainAxisSize: MainAxisSize.min,
children: [
Text(
'\$1.99',
style: TextStyle(
fontWeight: FontWeight.w600,
fontSize: 16,
color: Color(0xFF181725),
),
),
Icon(Icons.arrow_forward_ios, color: Color(0xFF181725)),
],
),
),
Padding(
padding: const EdgeInsets.symmetric(horizontal: 25.2),
child: Divider(),
),
],
),
);
}
}