|
|
|
|
@ -507,7 +507,7 @@ class _LandingPageState extends State<LandingPage> with WidgetsBindingObserver {
|
|
|
|
|
setState(() {
|
|
|
|
|
notificationCount =
|
|
|
|
|
value['List_PatientDashboard'][0]['UnreadPatientNotificationCount'] > 99 ? '99+' : value['List_PatientDashboard'][0]['UnreadPatientNotificationCount'].toString();
|
|
|
|
|
model.setState(model.count, true, num.tryParse(notificationCount));
|
|
|
|
|
model.setState(model.count, true, notificationCount);
|
|
|
|
|
sharedPref.setString(NOTIFICATION_COUNT, notificationCount);
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
@ -558,7 +558,7 @@ class _LandingPageState extends State<LandingPage> with WidgetsBindingObserver {
|
|
|
|
|
pageController.jumpToPage(0);
|
|
|
|
|
},
|
|
|
|
|
),
|
|
|
|
|
projectViewModel.isLogin && model.notificationsCount != 0
|
|
|
|
|
projectViewModel.isLogin && model.notificationsCount != null
|
|
|
|
|
? new Positioned(
|
|
|
|
|
right: projectViewModel.isArabic ? 35 : 0,
|
|
|
|
|
top: 5,
|
|
|
|
|
@ -680,7 +680,7 @@ class _LandingPageState extends State<LandingPage> with WidgetsBindingObserver {
|
|
|
|
|
setState(() {
|
|
|
|
|
if (value != null) {
|
|
|
|
|
notificationCount = value['List_PatientDashboard'][0]['UnreadPatientNotificationCount'] > 99 ? '99+' : value['List_PatientDashboard'][0]['UnreadPatientNotificationCount'].toString();
|
|
|
|
|
model.setState(model.count, true, num.tryParse(notificationCount));
|
|
|
|
|
model.setState(model.count, true, notificationCount);
|
|
|
|
|
sharedPref.setString(NOTIFICATION_COUNT, notificationCount);
|
|
|
|
|
}
|
|
|
|
|
}),
|
|
|
|
|
|