11/15/1
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user