// Some code
class Lesson02d extends StatelessWidget {
const Lesson02d({super.key});
@override
Widget build(BuildContext context) {
return Scaffold(
backgroundColor: Colors.white,
appBar: AppBar(
backgroundColor: Colors.white,
title: Text(
'Bevegares',
style: TextStyle(
fontSize: 20,
fontWeight: FontWeight.bold,
color: Colors.black,
),
),
centerTitle: true,
leading: Icon(Icons.arrow_back_ios),
actions: [Icon(Icons.tune), SizedBox(width: 15)],
),
body: Padding(
padding: const EdgeInsets.only(top: 30, left: 30, right: 30),
child: GridView(
gridDelegate: SliverGridDelegateWithFixedCrossAxisCount(
crossAxisCount: 2,
mainAxisSpacing: 10,
crossAxisSpacing: 10,
childAspectRatio: 0.67,
),
children: [
// ะฟะตัะฒะฐั ะบะฐััะพัะบะฐ
Container(
decoration: BoxDecoration(
color: Colors.white,
border: Border.all(color: Color(0xFFE2E2E2), width: 1),
borderRadius: BorderRadius.circular(18),
),
padding: EdgeInsets.only(
top: 20,
right: 15,
left: 15,
bottom: 15,
),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Center(child: Image.asset('assets/coke.png')),
SizedBox(height: 20),
Text(
'Diet coke',
style: TextStyle(
fontSize: 16,
fontWeight: FontWeight.bold,
color: Colors.black,
),
),
Text(
'355ml, Price',
style: TextStyle(
fontSize: 14,
fontWeight: FontWeight.w500,
color: Color(0xFF7C7C7C),
),
),
SizedBox(height: 20),
Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Text(
'\$1.99',
style: TextStyle(
fontSize: 18,
fontWeight: FontWeight.w800,
color: Colors.black,
),
),
FloatingActionButton(
onPressed: () {},
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(20)
),
backgroundColor: Color(0xFF53B175),
child: Icon(Icons.add, color: Colors.white, size: 30,),
),
],
),
],
),
),
// ะฒัะพัะฐั ะบะฐััะพัะบะฐ
Container(
decoration: BoxDecoration(
color: Colors.white,
border: Border.all(color: Color(0xFFE2E2E2), width: 1),
borderRadius: BorderRadius.circular(18),
),
padding: EdgeInsets.only(
top: 20,
right: 15,
left: 15,
bottom: 15,
),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Center(child: Image.asset('assets/coke.png')),
SizedBox(height: 20),
Text(
'Diet coke',
style: TextStyle(
fontSize: 16,
fontWeight: FontWeight.bold,
color: Colors.black,
),
),
Text(
'355ml, Price',
style: TextStyle(
fontSize: 14,
fontWeight: FontWeight.w500,
color: Color(0xFF7C7C7C),
),
),
SizedBox(height: 20),
Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Text(
'\$1.99',
style: TextStyle(
fontSize: 18,
fontWeight: FontWeight.w800,
color: Colors.black,
),
),
FloatingActionButton(
onPressed: () {},
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(20)
),
backgroundColor: Color(0xFF53B175),
child: Icon(Icons.add, color: Colors.white, size: 30,),
),
],
),
],
),
),
// ััะตััั ะบะฐััะพัะบะฐ
Container(
decoration: BoxDecoration(
color: Colors.white,
border: Border.all(color: Color(0xFFE2E2E2), width: 1),
borderRadius: BorderRadius.circular(18),
),
padding: EdgeInsets.only(
top: 20,
right: 15,
left: 15,
bottom: 15,
),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Center(child: Image.asset('assets/coke.png')),
SizedBox(height: 20),
Text(
'Diet coke',
style: TextStyle(
fontSize: 16,
fontWeight: FontWeight.bold,
color: Colors.black,
),
),
Text(
'355ml, Price',
style: TextStyle(
fontSize: 14,
fontWeight: FontWeight.w500,
color: Color(0xFF7C7C7C),
),
),
SizedBox(height: 20),
Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Text(
'\$1.99',
style: TextStyle(
fontSize: 18,
fontWeight: FontWeight.w800,
color: Colors.black,
),
),
FloatingActionButton(
onPressed: () {},
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(20)
),
backgroundColor: Color(0xFF53B175),
child: Icon(Icons.add, color: Colors.white, size: 30,),
),
],
),
],
),
),
],
),
),
);
}
}