First Load Fix & beginers guide button change

This commit is contained in:
Yasien Mac Mini 2026-07-02 11:33:27 +02:00
parent 1438dd6b5a
commit 48b434dad9
4 changed files with 10 additions and 10 deletions

View file

@ -29,10 +29,10 @@ class AboutMihHiveData {
Future<bool> syncAboutMihDataWithServer() async { Future<bool> syncAboutMihDataWithServer() async {
try { try {
int remoteUserCount = await MihUserServices().fetchUserCount(); int remoteUserCount = await MihUserServices().fetchUserCount();
cacheUserCount(remoteUserCount); await cacheUserCount(remoteUserCount);
int remoteBusinessCount = int remoteBusinessCount =
await MihBusinessDetailsServices().fetchBusinessCount(); await MihBusinessDetailsServices().fetchBusinessCount();
cacheBusinessCount(remoteBusinessCount); await cacheBusinessCount(remoteBusinessCount);
return true; return true;
} catch (error) { } catch (error) {
KenLogger.warning("MIH App Operating in Offline Mode. Sync Paused"); KenLogger.warning("MIH App Operating in Offline Mode. Sync Paused");

View file

@ -111,12 +111,12 @@ class MzansiProfileHiveData {
UserConsent? remoteConsent = UserConsent? remoteConsent =
await MihUserConsentServices().getUserConsentStatusV2(); await MihUserConsentServices().getUserConsentStatusV2();
if (remoteConsent != null) { if (remoteConsent != null) {
cacheUserConsentData(remoteConsent); await cacheUserConsentData(remoteConsent);
} }
final remotePersonalLinks = final remotePersonalLinks =
await MihProfileLinksServices.getUserProfileLinksV2( await MihProfileLinksServices.getUserProfileLinksV2(
remoteUser.app_id); remoteUser.app_id);
cachePersonalProfileLinksData(remotePersonalLinks); await cachePersonalProfileLinksData(remotePersonalLinks);
} }
Business? remoteBusiness = Business? remoteBusiness =
await MihBusinessDetailsServices().getBusinessDetailsByUserV2(); await MihBusinessDetailsServices().getBusinessDetailsByUserV2();
@ -126,16 +126,16 @@ class MzansiProfileHiveData {
BusinessUser? remoteBizUser = BusinessUser? remoteBizUser =
await MihMyBusinessUserServices().getBusinessUserV2(); await MihMyBusinessUserServices().getBusinessUserV2();
if (remoteBizUser != null) { if (remoteBizUser != null) {
cacheBusinessUserData(remoteBizUser); await cacheBusinessUserData(remoteBizUser);
} }
final remoteBusinessEmployeeList = await MihBusinessEmployeeServices() final remoteBusinessEmployeeList = await MihBusinessEmployeeServices()
.fetchEmployeesV2(remoteBusiness.business_id); .fetchEmployeesV2(remoteBusiness.business_id);
cacheBusinessEmployeesData(remoteBusinessEmployeeList); await cacheBusinessEmployeesData(remoteBusinessEmployeeList);
final remoteBusinessLinks = final remoteBusinessLinks =
await MihProfileLinksServices.getBusinessProfileLinksV2( await MihProfileLinksServices.getBusinessProfileLinksV2(
remoteBusiness.business_id); remoteBusiness.business_id);
cacheBusinessProfileLinksData(remoteBusinessLinks); await cacheBusinessProfileLinksData(remoteBusinessLinks);
} }
return true; return true;
} catch (error) { } catch (error) {

View file

@ -153,11 +153,11 @@ class MzansiWalletHiveData {
try { try {
final remoteLoyaltyCards = await MIHMzansiWalletApis.getLoyaltyCardsV2( final remoteLoyaltyCards = await MIHMzansiWalletApis.getLoyaltyCardsV2(
profileProvider.user!.app_id); profileProvider.user!.app_id);
cacheLoyaltyCardsData(remoteLoyaltyCards); await cacheLoyaltyCardsData(remoteLoyaltyCards);
final remoteFavLoyaltyCards = final remoteFavLoyaltyCards =
await MIHMzansiWalletApis.getFavouriteLoyaltyCardsV2( await MIHMzansiWalletApis.getFavouriteLoyaltyCardsV2(
profileProvider.user!.app_id); profileProvider.user!.app_id);
cacheFavLoyaltyCardsData(remoteFavLoyaltyCards); await cacheFavLoyaltyCardsData(remoteFavLoyaltyCards);
return true; return true;
} catch (error) { } catch (error) {
KenLogger.warning("MIH App Operating in Offline Mode. Sync Paused."); KenLogger.warning("MIH App Operating in Offline Mode. Sync Paused.");

View file

@ -189,7 +189,7 @@ class _CallToActionButtonsState extends State<CallToActionButtons> {
), ),
const SizedBox(width: 10), const SizedBox(width: 10),
Text( Text(
"MIH Beginners Guide", "Beginners Guide",
style: TextStyle( style: TextStyle(
color: MihColors.primary(), color: MihColors.primary(),
fontSize: 20, fontSize: 20,