couponApply
This commit is contained in:
@@ -254,15 +254,16 @@ class ProductProvider extends ChangeNotifier {
|
||||
}
|
||||
}
|
||||
|
||||
void toggleWishlist1(String productId) {
|
||||
for (var product in products) {
|
||||
if (product.id == productId) {
|
||||
product.isInWishlist = !product.isInWishlist; // Toggle value
|
||||
notifyListeners(); // Refresh UI
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
// void toggleWishlist1(String productId)
|
||||
// {
|
||||
// for (var product in products) {
|
||||
// if (product.id == productId) {
|
||||
// product.isInWishlist = !product.isInWishlist; // Toggle value
|
||||
// notifyListeners(); // Refresh UI
|
||||
// break;
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
|
||||
// Future<bool> addToCart(BuildContext context, String productId) async
|
||||
// {
|
||||
|
||||
Reference in New Issue
Block a user