BASE: Update PLs Wait Loader.

This commit is contained in:
2025-12-05 16:36:32 +05:00
parent 079fb01608
commit 3874ef062b
34 changed files with 61 additions and 49 deletions

View File

@@ -86,7 +86,7 @@ class AdvertisementCard extends StatelessWidget {
final isDark = themeController.isDark.value;
return InkWell(
onTap: () async {
ShowToastDialog.showLoader("Please wait...".tr);
ShowToastDialog.showLoader(ConstTexts.pleaseWait.tr);
VendorModel? vendorModel = await FireStoreUtils.getVendorById(
model.vendorId!,
);

View File

@@ -46,7 +46,7 @@ class DriverInboxScreen extends StatelessWidget {
InboxModel inboxModel = InboxModel.fromJson(data!);
return InkWell(
onTap: () async {
ShowToastDialog.showLoader("Please wait...".tr);
ShowToastDialog.showLoader(ConstTexts.pleaseWait.tr);
UserModel? customer = await FireStoreUtils.getUserProfile(
inboxModel.customerId.toString(),

View File

@@ -47,7 +47,7 @@ class RestaurantInboxScreen extends StatelessWidget {
InboxModel inboxModel = InboxModel.fromJson(data!);
return InkWell(
onTap: () async {
ShowToastDialog.showLoader("Please wait...".tr);
ShowToastDialog.showLoader(ConstTexts.pleaseWait.tr);
UserModel? customer = await FireStoreUtils.getUserProfile(
inboxModel.customerId.toString(),

View File

@@ -1294,7 +1294,7 @@ class BannerBottomView extends StatelessWidget {
return InkWell(
onTap: () async {
if (bannerModel.redirect_type == "store") {
ShowToastDialog.showLoader("Please wait...".tr);
ShowToastDialog.showLoader(ConstTexts.pleaseWait.tr);
VendorModel? vendorModel =
await FireStoreUtils.getVendorById(
bannerModel.redirect_id.toString(),
@@ -1306,7 +1306,7 @@ class BannerBottomView extends StatelessWidget {
arguments: {"vendorModel": vendorModel},
);
} else if (bannerModel.redirect_type == "product") {
ShowToastDialog.showLoader("Please wait...".tr);
ShowToastDialog.showLoader(ConstTexts.pleaseWait.tr);
ProductModel? productModel =
await FireStoreUtils.getProductById(
bannerModel.redirect_id.toString(),

View File

@@ -106,7 +106,7 @@ class RedeemGiftCardScreen extends StatelessWidget {
} else if (controller.giftPinController.value.text.isEmpty) {
ShowToastDialog.showToast("Please Enter Gift Pin".tr);
} else {
ShowToastDialog.showLoader("Please wait...".tr);
ShowToastDialog.showLoader(ConstTexts.pleaseWait.tr);
await FireStoreUtils.checkRedeemCode(
controller.giftCodeController.value.text.replaceAll(
" ",

View File

@@ -2190,7 +2190,7 @@ class AdvertisementHomeCard extends StatelessWidget {
final isDark = themeController.isDark.value;
return InkWell(
onTap: () async {
ShowToastDialog.showLoader("Please wait...".tr);
ShowToastDialog.showLoader(ConstTexts.pleaseWait.tr);
VendorModel? vendorModel = await FireStoreUtils.getVendorById(
model.vendorId!,
);
@@ -2653,7 +2653,7 @@ class BannerView extends StatelessWidget {
return InkWell(
onTap: () async {
if (bannerModel.redirect_type == "store") {
ShowToastDialog.showLoader("Please wait...".tr);
ShowToastDialog.showLoader(ConstTexts.pleaseWait.tr);
VendorModel? vendorModel =
await FireStoreUtils.getVendorById(
bannerModel.redirect_id.toString(),
@@ -2665,7 +2665,7 @@ class BannerView extends StatelessWidget {
arguments: {"vendorModel": vendorModel},
);
} else if (bannerModel.redirect_type == "product") {
ShowToastDialog.showLoader("Please wait...".tr);
ShowToastDialog.showLoader(ConstTexts.pleaseWait.tr);
ProductModel? productModel =
await FireStoreUtils.getProductById(
bannerModel.redirect_id.toString(),
@@ -2759,7 +2759,7 @@ class BannerBottomView extends StatelessWidget {
return InkWell(
onTap: () async {
if (bannerModel.redirect_type == "store") {
ShowToastDialog.showLoader("Please wait...".tr);
ShowToastDialog.showLoader(ConstTexts.pleaseWait.tr);
VendorModel? vendorModel =
await FireStoreUtils.getVendorById(
bannerModel.redirect_id.toString(),
@@ -2771,7 +2771,7 @@ class BannerBottomView extends StatelessWidget {
arguments: {"vendorModel": vendorModel},
);
} else if (bannerModel.redirect_type == "product") {
ShowToastDialog.showLoader("Please wait...".tr);
ShowToastDialog.showLoader(ConstTexts.pleaseWait.tr);
ProductModel? productModel =
await FireStoreUtils.getProductById(
bannerModel.redirect_id.toString(),

View File

@@ -213,7 +213,9 @@ class HomeScreenTwo extends StatelessWidget {
Constant.checkPermission(
onTap: () async {
ShowToastDialog.showLoader(
"Please wait...".tr,
ConstTexts
.pleaseWait
.tr,
);
// ✅ declare once for whole method
@@ -1206,7 +1208,7 @@ class BannerView extends StatelessWidget {
return InkWell(
onTap: () async {
if (bannerModel.redirect_type == "store") {
ShowToastDialog.showLoader("Please wait...".tr);
ShowToastDialog.showLoader(ConstTexts.pleaseWait.tr);
VendorModel? vendorModel = await FireStoreUtils.getVendorById(
bannerModel.redirect_id.toString(),
);
@@ -1217,7 +1219,7 @@ class BannerView extends StatelessWidget {
arguments: {"vendorModel": vendorModel},
);
} else if (bannerModel.redirect_type == "product") {
ShowToastDialog.showLoader("Please wait...".tr);
ShowToastDialog.showLoader(ConstTexts.pleaseWait.tr);
ProductModel? productModel =
await FireStoreUtils.getProductById(
bannerModel.redirect_id.toString(),

View File

@@ -228,7 +228,7 @@ class OrderDetailsScreen extends StatelessWidget {
: InkWell(
onTap: () async {
ShowToastDialog.showLoader(
"Please wait...".tr,
ConstTexts.pleaseWait.tr,
);
UserModel? customer =
@@ -902,7 +902,9 @@ class OrderDetailsScreen extends StatelessWidget {
InkWell(
onTap: () async {
ShowToastDialog.showLoader(
"Please wait...".tr,
ConstTexts
.pleaseWait
.tr,
);
UserModel? customer =

View File

@@ -578,7 +578,7 @@ class ProfileScreen extends StatelessWidget {
negativeString: "Cancel".tr,
positiveClick: () async {
ShowToastDialog.showLoader(
"Please wait...".tr,
ConstTexts.pleaseWait.tr,
);
await controller
.deleteUserFromServer();

View File

@@ -42,7 +42,7 @@ class ScanQrCodeScreen extends StatelessWidget {
// if TypeScan.takePicture will try decode when click to take a picture(default TypeScan.live)
onCapture: (Result result) {
Get.back();
ShowToastDialog.showLoader("Please wait...".tr);
ShowToastDialog.showLoader(ConstTexts.pleaseWait.tr);
if (controller.allNearestRestaurant.isNotEmpty) {
if (controller.allNearestRestaurant
.where((vendor) => vendor.id == result.text)