complete category issue

This commit is contained in:
2025-03-20 18:21:48 +05:30
parent 7ab5c896f0
commit 6a10900f68
21 changed files with 1198 additions and 420 deletions

View File

@@ -188,7 +188,7 @@ class AddtocartProvider extends ChangeNotifier {
notifyListeners();
},
(response) {
print("kdjgkjfghjkfghjkl $response");
print("kdjgkjfghjkfghjkl ${response.data}");
couponDataModel = response!;
iscouponLoading = false;
notifyListeners();
@@ -222,7 +222,7 @@ class AddtocartProvider extends ChangeNotifier {
context.showLoader(show: false);
isCouponApply = false;
Fluttertoast.showToast(
msg: "Coupon Code invalid!",
msg: "${error.message}",
toastLength: Toast.LENGTH_SHORT,
gravity: ToastGravity.BOTTOM,
backgroundColor: Colors.red,
@@ -267,6 +267,7 @@ class AddtocartProvider extends ChangeNotifier {
}
///////////////////////////////////orderPaymnet///////////////////////////
bool ispaymentLoader = false;
Future<void> orderPaymnet(
BuildContext context,
@@ -285,9 +286,10 @@ class AddtocartProvider extends ChangeNotifier {
"addressId": addressId,
"cartId": cartId,
};
} else {
} else
{
data = {
"amount": originalAmount,
"amount": originalAmount,
"addressId": addressId,
"cartId": cartId,
"couponId": couponId