This commit is contained in:
Hamza-Ayed
2023-11-15 02:00:00 +03:00
parent b384a491cd
commit c81ded3c98
4 changed files with 50 additions and 45 deletions

View File

@@ -13,15 +13,15 @@ class PromosController extends GetxController {
late String promos;
@override
void onInit() {
getPromoBytody();
getPromoByToday();
super.onInit();
}
Future getPromoBytody() async {
Future getPromoByToday() async {
var res = await CRUD().get(link: AppLink.getPromoBytody, payload: {});
if (res.toString() == 'failure') {
Get.defaultDialog(
title: 'No Promo for tody .'.tr,
title: 'No Promo for today .'.tr,
middleText: '',
titleStyle: AppStyle.title,
confirm: MyElevatedButton(