diff --git a/lib/pages/MyAppointments/SchedulePage.dart b/lib/pages/MyAppointments/SchedulePage.dart index bf2717b1..e83e8408 100644 --- a/lib/pages/MyAppointments/SchedulePage.dart +++ b/lib/pages/MyAppointments/SchedulePage.dart @@ -51,7 +51,7 @@ class _SchedulePageState extends State { builder: (_, model, widget) => AppScaffold( appBarTitle: TranslationBase.of(context).schedule, isShowAppBar: true, - isLoading: true, + baseViewModel: model, body: SizedBox( height: MediaQuery.of(context).size.height, child: Stack( diff --git a/lib/pages/landing/landing_page.dart b/lib/pages/landing/landing_page.dart index 3cca8caf..b8607a89 100644 --- a/lib/pages/landing/landing_page.dart +++ b/lib/pages/landing/landing_page.dart @@ -180,8 +180,12 @@ class _LandingPageState extends State with WidgetsBindingObserver { locationUtils = new LocationUtils(isShowConfirmDialog: true, context: context); - WidgetsBinding.instance - .addPostFrameCallback((_) => locationUtils.getCurrentLocation()); + WidgetsBinding.instance.addPostFrameCallback((_) { + locationUtils.getCurrentLocation(); + if (projectViewModel.isLogin) { + familyFileProvider.getSharedRecordByStatus(); + } + }); // HMG (Guest/Internet) Wifi Access [Zohaib Kambrani] HMGNetworkConnectivity(context, () { GifLoaderDialogUtils.showMyDialog(context); @@ -472,7 +476,6 @@ class _LandingPageState extends State with WidgetsBindingObserver { } }); } - familyFileProvider.getSharedRecordByStatus(); } } @@ -480,6 +483,7 @@ class _LandingPageState extends State with WidgetsBindingObserver { Widget build(BuildContext context) { projectViewModel = Provider.of(context); model = Provider.of(context); + return Scaffold( appBar: AppBar( elevation: 0,