First Load Fix & beginers guide button change
This commit is contained in:
parent
1438dd6b5a
commit
48b434dad9
4 changed files with 10 additions and 10 deletions
|
|
@ -29,10 +29,10 @@ class AboutMihHiveData {
|
|||
Future<bool> syncAboutMihDataWithServer() async {
|
||||
try {
|
||||
int remoteUserCount = await MihUserServices().fetchUserCount();
|
||||
cacheUserCount(remoteUserCount);
|
||||
await cacheUserCount(remoteUserCount);
|
||||
int remoteBusinessCount =
|
||||
await MihBusinessDetailsServices().fetchBusinessCount();
|
||||
cacheBusinessCount(remoteBusinessCount);
|
||||
await cacheBusinessCount(remoteBusinessCount);
|
||||
return true;
|
||||
} catch (error) {
|
||||
KenLogger.warning("MIH App Operating in Offline Mode. Sync Paused");
|
||||
|
|
|
|||
|
|
@ -111,12 +111,12 @@ class MzansiProfileHiveData {
|
|||
UserConsent? remoteConsent =
|
||||
await MihUserConsentServices().getUserConsentStatusV2();
|
||||
if (remoteConsent != null) {
|
||||
cacheUserConsentData(remoteConsent);
|
||||
await cacheUserConsentData(remoteConsent);
|
||||
}
|
||||
final remotePersonalLinks =
|
||||
await MihProfileLinksServices.getUserProfileLinksV2(
|
||||
remoteUser.app_id);
|
||||
cachePersonalProfileLinksData(remotePersonalLinks);
|
||||
await cachePersonalProfileLinksData(remotePersonalLinks);
|
||||
}
|
||||
Business? remoteBusiness =
|
||||
await MihBusinessDetailsServices().getBusinessDetailsByUserV2();
|
||||
|
|
@ -126,16 +126,16 @@ class MzansiProfileHiveData {
|
|||
BusinessUser? remoteBizUser =
|
||||
await MihMyBusinessUserServices().getBusinessUserV2();
|
||||
if (remoteBizUser != null) {
|
||||
cacheBusinessUserData(remoteBizUser);
|
||||
await cacheBusinessUserData(remoteBizUser);
|
||||
}
|
||||
final remoteBusinessEmployeeList = await MihBusinessEmployeeServices()
|
||||
.fetchEmployeesV2(remoteBusiness.business_id);
|
||||
cacheBusinessEmployeesData(remoteBusinessEmployeeList);
|
||||
await cacheBusinessEmployeesData(remoteBusinessEmployeeList);
|
||||
|
||||
final remoteBusinessLinks =
|
||||
await MihProfileLinksServices.getBusinessProfileLinksV2(
|
||||
remoteBusiness.business_id);
|
||||
cacheBusinessProfileLinksData(remoteBusinessLinks);
|
||||
await cacheBusinessProfileLinksData(remoteBusinessLinks);
|
||||
}
|
||||
return true;
|
||||
} catch (error) {
|
||||
|
|
|
|||
|
|
@ -153,11 +153,11 @@ class MzansiWalletHiveData {
|
|||
try {
|
||||
final remoteLoyaltyCards = await MIHMzansiWalletApis.getLoyaltyCardsV2(
|
||||
profileProvider.user!.app_id);
|
||||
cacheLoyaltyCardsData(remoteLoyaltyCards);
|
||||
await cacheLoyaltyCardsData(remoteLoyaltyCards);
|
||||
final remoteFavLoyaltyCards =
|
||||
await MIHMzansiWalletApis.getFavouriteLoyaltyCardsV2(
|
||||
profileProvider.user!.app_id);
|
||||
cacheFavLoyaltyCardsData(remoteFavLoyaltyCards);
|
||||
await cacheFavLoyaltyCardsData(remoteFavLoyaltyCards);
|
||||
return true;
|
||||
} catch (error) {
|
||||
KenLogger.warning("MIH App Operating in Offline Mode. Sync Paused.");
|
||||
|
|
|
|||
|
|
@ -189,7 +189,7 @@ class _CallToActionButtonsState extends State<CallToActionButtons> {
|
|||
),
|
||||
const SizedBox(width: 10),
|
||||
Text(
|
||||
"MIH Beginners Guide",
|
||||
"Beginners Guide",
|
||||
style: TextStyle(
|
||||
color: MihColors.primary(),
|
||||
fontSize: 20,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue