|
|
|
|
@ -249,11 +249,11 @@ class _ProductOrderItemState extends State<ProductOrderItem> {
|
|
|
|
|
} else {
|
|
|
|
|
newValue = widget.item.quantity - 1;
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
_quantityController.text = "${widget.item.quantity}";
|
|
|
|
|
_totalPrice =
|
|
|
|
|
"${(widget.item.product.price * widget.item.quantity).toStringAsFixed(2)}";
|
|
|
|
|
widget.item.quantity = newValue;
|
|
|
|
|
}
|
|
|
|
|
_quantityController.text = "${widget.item.quantity}";
|
|
|
|
|
_totalPrice =
|
|
|
|
|
"${(widget.item.product.price * widget.item.quantity).toStringAsFixed(2)}";
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|