implements tags
This commit is contained in:
@@ -29,7 +29,7 @@ class _OrderDetailsScreenState extends State<OrderDetailsScreen> {
|
||||
SizedBox(height: 20),
|
||||
_itemsList(),
|
||||
SizedBox(height: 20),
|
||||
_cancelButton(),
|
||||
//_cancelButton(),
|
||||
],
|
||||
),
|
||||
),
|
||||
@@ -51,6 +51,9 @@ class _OrderDetailsScreenState extends State<OrderDetailsScreen> {
|
||||
Text(widget.order.orderNumber,
|
||||
style: TextStyle(fontSize: 16, fontWeight: FontWeight.bold)),
|
||||
SizedBox(height: 5),
|
||||
Text(widget.order.deliveryAddress!.addressLine ?? " ",
|
||||
style: TextStyle(fontSize: 16, fontWeight: FontWeight.bold)),
|
||||
SizedBox(height: 5),
|
||||
Text(widget.order.createdAt.toString()),
|
||||
SizedBox(height: 5),
|
||||
Text(
|
||||
@@ -140,21 +143,6 @@ class _OrderDetailsScreenState extends State<OrderDetailsScreen> {
|
||||
|
||||
/// List of Ordered Items
|
||||
Widget _itemsList() {
|
||||
// final List<Map<String, dynamic>> items = [
|
||||
// {
|
||||
// "name": "Coffee",
|
||||
// "quantity": 2,
|
||||
// "price": 10.00,
|
||||
// "image": "https://via.placeholder.com/50"
|
||||
// },
|
||||
// {
|
||||
// "name": "Rice",
|
||||
// "quantity": 1,
|
||||
// "price": 10.50,
|
||||
// "image": "https://via.placeholder.com/50"
|
||||
// }
|
||||
// ];
|
||||
|
||||
return Expanded(
|
||||
child: ListView.builder(
|
||||
itemCount: widget.order.orderItems!.length,
|
||||
@@ -176,7 +164,7 @@ class _OrderDetailsScreenState extends State<OrderDetailsScreen> {
|
||||
),
|
||||
title: Text(orderitem.productName ?? ""),
|
||||
subtitle: Text("Qty: ${orderitem.quantity.toString()}"),
|
||||
trailing: Text("\$${orderitem.price ?? ""}",
|
||||
trailing: Text("\$${orderitem.totalOrderItemPrice ?? ""}",
|
||||
style: TextStyle(fontWeight: FontWeight.bold)),
|
||||
),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user