AssetImage using
This commit is contained in:
@@ -89,7 +89,10 @@ class _OrderConfirmationPageState extends State<OrderConfirmationPage> {
|
||||
final item = cartItems[index];
|
||||
return OrderConfirmItemCard(
|
||||
name: item['name'],
|
||||
image: Image.asset(item['image'], width: 50, height: 50),
|
||||
image: Image(
|
||||
image: AssetImage('assets/${item['image']}'),
|
||||
width: 50,
|
||||
height: 50),
|
||||
price: double.parse(item['price']),
|
||||
count: item['count'],
|
||||
);
|
||||
@@ -126,7 +129,16 @@ class _OrderConfirmationPageState extends State<OrderConfirmationPage> {
|
||||
),
|
||||
ElevatedButton(
|
||||
onPressed: () {
|
||||
debugPrint('Order confirmed');
|
||||
print('debugprint');
|
||||
// if (kIsWeb) {
|
||||
// Navigator.of(context).push(
|
||||
// MaterialPageRoute(
|
||||
// builder: (context) => const OrderPayPage(),
|
||||
// ),
|
||||
// );
|
||||
// } else {
|
||||
// debugPrint('test');
|
||||
// }
|
||||
},
|
||||
style: ElevatedButton.styleFrom(
|
||||
backgroundColor: Theme.of(context).primaryColor,
|
||||
|
||||
Reference in New Issue
Block a user