addtocart

This commit is contained in:
bestonemitRam
2025-01-31 00:48:19 +05:30
parent 48fab4a1c0
commit 028155a1d7
11 changed files with 1021 additions and 675 deletions

View File

@@ -360,7 +360,8 @@ class ProductProvider extends ChangeNotifier {
int get quantity => _quantity;
double get totalPrice => _totalPrice;
void setProductPrice(double price) {
void setProductPrice(double price)
{
_unitPrice = price;
_totalPrice = _unitPrice * _quantity;
notifyListeners();