family file fix

merge-requests/365/head
Sultan Khan 3 years ago
parent 59892870e2
commit 301728ed3d

@ -51,7 +51,7 @@ class _SchedulePageState extends State<SchedulePage> {
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(

@ -180,8 +180,12 @@ class _LandingPageState extends State<LandingPage> 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<LandingPage> with WidgetsBindingObserver {
}
});
}
familyFileProvider.getSharedRecordByStatus();
}
}
@ -480,6 +483,7 @@ class _LandingPageState extends State<LandingPage> with WidgetsBindingObserver {
Widget build(BuildContext context) {
projectViewModel = Provider.of(context);
model = Provider.of<ToDoCountProviderModel>(context);
return Scaffold(
appBar: AppBar(
elevation: 0,

Loading…
Cancel
Save