|
|
|
@ -339,43 +339,18 @@ class _OrderDetailsPageState extends State<OrderDetailsPage> {
|
|
|
|
|
itemBuilder: (context, index) {
|
|
|
|
|
return Container(
|
|
|
|
|
child: productTile(
|
|
|
|
|
productName: model.orderListModel[0]
|
|
|
|
|
.orderItems[index].product.name
|
|
|
|
|
.toString(),
|
|
|
|
|
productPrice: model.orderListModel[0]
|
|
|
|
|
.orderItems[index].product.price
|
|
|
|
|
.toString(),
|
|
|
|
|
productRate: model.orderListModel[0]
|
|
|
|
|
.orderItems[index].product.approvedRatingSum
|
|
|
|
|
.toDouble(),
|
|
|
|
|
productReviews: model
|
|
|
|
|
.orderListModel[0]
|
|
|
|
|
.orderItems[index]
|
|
|
|
|
.product
|
|
|
|
|
.approvedTotalReviews,
|
|
|
|
|
totalPrice:
|
|
|
|
|
"${(model.orderListModel[0].orderItems[index].product.price * model.orderListModel[0].orderItems[index].quantity).toStringAsFixed(2)}",
|
|
|
|
|
qyt: model.orderListModel[0].orderItems[index]
|
|
|
|
|
.quantity
|
|
|
|
|
.toString(),
|
|
|
|
|
productName: model.orderListModel[0].orderItems[index].product.name.toString(),
|
|
|
|
|
productPrice: model.orderListModel[0].orderItems[index].product.price.toString(),
|
|
|
|
|
productRate: model.orderListModel[0].orderItems[index].product.approvedRatingSum.toDouble(),
|
|
|
|
|
productReviews: model.orderListModel[0].orderItems[index].product.approvedTotalReviews,
|
|
|
|
|
totalPrice: "${(model.orderListModel[0].orderItems[index].product.price * model.orderListModel[0].orderItems[index].quantity).toStringAsFixed(2)}",
|
|
|
|
|
qyt: model.orderListModel[0].orderItems[index].quantity.toString(),
|
|
|
|
|
isOrderDetails: true,
|
|
|
|
|
imgs: model.orderListModel[0].orderItems[index]
|
|
|
|
|
.product.images !=
|
|
|
|
|
null &&
|
|
|
|
|
model
|
|
|
|
|
.orderListModel[0]
|
|
|
|
|
.orderItems[index]
|
|
|
|
|
.product
|
|
|
|
|
.images
|
|
|
|
|
.length !=
|
|
|
|
|
0
|
|
|
|
|
? model.orderListModel[0].orderItems[index]
|
|
|
|
|
.product.images[0].src
|
|
|
|
|
.toString()
|
|
|
|
|
: null,
|
|
|
|
|
imgs: model.orderListModel[0].orderItems[index].product.images != null &&
|
|
|
|
|
model.orderListModel[0].orderItems[index].product.images.length != 0
|
|
|
|
|
? model.orderListModel[0].orderItems[index].product.images[0].src.toString() : null,
|
|
|
|
|
status: model.orderListModel[0].orderStatusId,
|
|
|
|
|
product: model.orderListModel[0]
|
|
|
|
|
.orderItems[index].product,
|
|
|
|
|
product: model.orderListModel[0].orderItems[index].product,
|
|
|
|
|
),
|
|
|
|
|
);
|
|
|
|
|
}),
|
|
|
|
|