lab_4_done
This commit is contained in:
parent
ba1d0908e0
commit
595b8ad352
@ -83,20 +83,23 @@ class _HomePageState extends State<HomePage> {
|
|||||||
itemCount: cart.items.length,
|
itemCount: cart.items.length,
|
||||||
itemBuilder: (context, index) {
|
itemBuilder: (context, index) {
|
||||||
return Card(
|
return Card(
|
||||||
margin:
|
margin: const EdgeInsets.symmetric(vertical: 8, horizontal: 10),
|
||||||
const EdgeInsets.symmetric(vertical: 8, horizontal: 10),
|
|
||||||
elevation: 4,
|
elevation: 4,
|
||||||
|
child: SizedBox(
|
||||||
|
|
||||||
child: ListTile(
|
child: ListTile(
|
||||||
contentPadding: const EdgeInsets.all(16.0),
|
contentPadding: EdgeInsets.zero,
|
||||||
leading: ClipRRect(
|
leading: ClipRRect(
|
||||||
borderRadius: BorderRadius.circular(10.0),
|
borderRadius: BorderRadius.circular(10.0),
|
||||||
|
child: SizedBox(
|
||||||
|
width: 80,
|
||||||
|
height: 120,
|
||||||
child: Image.asset(
|
child: Image.asset(
|
||||||
cart.items[index].imgUrl,
|
cart.items[index].imgUrl,
|
||||||
width: 80,
|
|
||||||
height: 80,
|
|
||||||
fit: BoxFit.cover,
|
fit: BoxFit.cover,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
),
|
||||||
title: Text(
|
title: Text(
|
||||||
cart.items[index].name,
|
cart.items[index].name,
|
||||||
style: const TextStyle(fontSize: 18),
|
style: const TextStyle(fontSize: 18),
|
||||||
@ -135,6 +138,7 @@ class _HomePageState extends State<HomePage> {
|
|||||||
);
|
);
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
|
),
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
|
Loading…
Reference in New Issue
Block a user