|
|
|
|
@ -52,6 +52,7 @@ class _LandingPageState extends State<LandingPage> with WidgetsBindingObserver {
|
|
|
|
|
ProjectViewModel projectViewModel;
|
|
|
|
|
var notificationCount = '';
|
|
|
|
|
var themeNotifier;
|
|
|
|
|
|
|
|
|
|
///inject the user data
|
|
|
|
|
AuthenticatedUserObject authenticatedUserObject =
|
|
|
|
|
locator<AuthenticatedUserObject>();
|
|
|
|
|
@ -77,6 +78,7 @@ class _LandingPageState extends State<LandingPage> with WidgetsBindingObserver {
|
|
|
|
|
setState(() {
|
|
|
|
|
currentTab = tab;
|
|
|
|
|
pageController.jumpToPage(tab);
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@ -144,7 +146,6 @@ class _LandingPageState extends State<LandingPage> with WidgetsBindingObserver {
|
|
|
|
|
WidgetsBinding.instance
|
|
|
|
|
.addPostFrameCallback((_) => locationUtils.getCurrentLocation());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (Platform.isIOS) {
|
|
|
|
|
_firebaseMessaging.requestNotificationPermissions();
|
|
|
|
|
}
|
|
|
|
|
@ -430,7 +431,7 @@ class _LandingPageState extends State<LandingPage> with WidgetsBindingObserver {
|
|
|
|
|
children: [
|
|
|
|
|
HomePage(
|
|
|
|
|
goToMyProfile: () {
|
|
|
|
|
_changeCurrentTab(1);
|
|
|
|
|
// _changeCurrentTab(1);
|
|
|
|
|
},
|
|
|
|
|
),
|
|
|
|
|
MedicalProfilePage(),
|
|
|
|
|
@ -471,6 +472,7 @@ class _LandingPageState extends State<LandingPage> with WidgetsBindingObserver {
|
|
|
|
|
return TranslationBase.of(context).bookAppo;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
setTheme() async {
|
|
|
|
|
//
|
|
|
|
|
// defaultTheme =
|
|
|
|
|
@ -524,8 +526,9 @@ class _LandingPageState extends State<LandingPage> with WidgetsBindingObserver {
|
|
|
|
|
.then((res) => {print(res)});
|
|
|
|
|
authService.getDashboard().then((value) => {
|
|
|
|
|
setState(() {
|
|
|
|
|
notificationCount = value['List_PatientDashboard']
|
|
|
|
|
[0]['UnreadPatientNotificationCount'].toString();
|
|
|
|
|
notificationCount = value['List_PatientDashboard'][0]
|
|
|
|
|
['UnreadPatientNotificationCount']
|
|
|
|
|
.toString();
|
|
|
|
|
})
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
@ -557,6 +560,7 @@ class _LandingPageState extends State<LandingPage> with WidgetsBindingObserver {
|
|
|
|
|
_changeCurrentTab(2);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
login() async {
|
|
|
|
|
var data = await sharedPref.getObject(IMEI_USER_DATA);
|
|
|
|
|
sharedPref.remove(REGISTER_DATA_FOR_LOGIIN);
|
|
|
|
|
|