family file fix

merge-update-with-lab-changes
Sultan Khan 5 years ago
parent 59892870e2
commit 301728ed3d

@ -51,7 +51,7 @@ class _SchedulePageState extends State<SchedulePage> {
builder: (_, model, widget) => AppScaffold( builder: (_, model, widget) => AppScaffold(
appBarTitle: TranslationBase.of(context).schedule, appBarTitle: TranslationBase.of(context).schedule,
isShowAppBar: true, isShowAppBar: true,
isLoading: true, baseViewModel: model,
body: SizedBox( body: SizedBox(
height: MediaQuery.of(context).size.height, height: MediaQuery.of(context).size.height,
child: Stack( child: Stack(

@ -180,8 +180,12 @@ class _LandingPageState extends State<LandingPage> with WidgetsBindingObserver {
locationUtils = locationUtils =
new LocationUtils(isShowConfirmDialog: true, context: context); new LocationUtils(isShowConfirmDialog: true, context: context);
WidgetsBinding.instance WidgetsBinding.instance.addPostFrameCallback((_) {
.addPostFrameCallback((_) => locationUtils.getCurrentLocation()); locationUtils.getCurrentLocation();
if (projectViewModel.isLogin) {
familyFileProvider.getSharedRecordByStatus();
}
});
// HMG (Guest/Internet) Wifi Access [Zohaib Kambrani] // HMG (Guest/Internet) Wifi Access [Zohaib Kambrani]
HMGNetworkConnectivity(context, () { HMGNetworkConnectivity(context, () {
GifLoaderDialogUtils.showMyDialog(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) { Widget build(BuildContext context) {
projectViewModel = Provider.of(context); projectViewModel = Provider.of(context);
model = Provider.of<ToDoCountProviderModel>(context); model = Provider.of<ToDoCountProviderModel>(context);
return Scaffold( return Scaffold(
appBar: AppBar( appBar: AppBar(
elevation: 0, elevation: 0,

Loading…
Cancel
Save