implements tags

This commit is contained in:
2025-02-11 18:42:56 +05:30
parent d230ab8d7f
commit ad7903d1e3
18 changed files with 1231 additions and 2840 deletions

View File

@@ -364,6 +364,14 @@ class AddtocartProvider extends ChangeNotifier {
return result.fold(
(error) {
Fluttertoast.showToast(
msg: "${error.message}",
toastLength: Toast.LENGTH_SHORT,
gravity: ToastGravity.BOTTOM,
backgroundColor: Colors.green,
textColor: Colors.white,
fontSize: 14.0,
);
ispaymentLoader = false;
notifyListeners();
},
@@ -376,6 +384,15 @@ class AddtocartProvider extends ChangeNotifier {
);
} catch (e) {
ispaymentLoader = false;
Fluttertoast.showToast(
msg: "${e}",
toastLength: Toast.LENGTH_SHORT,
gravity: ToastGravity.BOTTOM,
backgroundColor: Colors.green,
textColor: Colors.white,
fontSize: 14.0,
);
notifyListeners();
}
}