|
|
|
|
@ -789,35 +789,44 @@ class _AppDrawerState extends State<AppDrawer> {
|
|
|
|
|
|
|
|
|
|
checkIfIsInPatient(context);
|
|
|
|
|
|
|
|
|
|
appointmentRateViewModel
|
|
|
|
|
.getIsLastAppointmentRatedList(languageID)
|
|
|
|
|
.then((value) => {
|
|
|
|
|
getToDoCount(),
|
|
|
|
|
//Utils.hideProgressDialog(),
|
|
|
|
|
if (appointmentRateViewModel.isHaveAppointmentNotRate)
|
|
|
|
|
{
|
|
|
|
|
Navigator.pushAndRemoveUntil(
|
|
|
|
|
context,
|
|
|
|
|
FadePage(
|
|
|
|
|
page: RateAppointmentDoctor(),
|
|
|
|
|
),
|
|
|
|
|
(r) => false)
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
Navigator.pushAndRemoveUntil(
|
|
|
|
|
context,
|
|
|
|
|
FadePage(
|
|
|
|
|
page: LandingPage(),
|
|
|
|
|
),
|
|
|
|
|
(r) => false)
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
.catchError((err) {
|
|
|
|
|
print(err);
|
|
|
|
|
//Utils.hideProgressDialog();
|
|
|
|
|
// GifLoaderDialogUtils.hideDialog(context);
|
|
|
|
|
});
|
|
|
|
|
Navigator.pushAndRemoveUntil(
|
|
|
|
|
context,
|
|
|
|
|
FadePage(
|
|
|
|
|
page: LandingPage(),
|
|
|
|
|
),
|
|
|
|
|
(r) => false);
|
|
|
|
|
|
|
|
|
|
// Commented as per the CR 18819
|
|
|
|
|
|
|
|
|
|
// appointmentRateViewModel
|
|
|
|
|
// .getIsLastAppointmentRatedList(languageID)
|
|
|
|
|
// .then((value) => {
|
|
|
|
|
// getToDoCount(),
|
|
|
|
|
// //Utils.hideProgressDialog(),
|
|
|
|
|
// if (appointmentRateViewModel.isHaveAppointmentNotRate)
|
|
|
|
|
// {
|
|
|
|
|
// Navigator.pushAndRemoveUntil(
|
|
|
|
|
// context,
|
|
|
|
|
// FadePage(
|
|
|
|
|
// page: RateAppointmentDoctor(),
|
|
|
|
|
// ),
|
|
|
|
|
// (r) => false)
|
|
|
|
|
// }
|
|
|
|
|
// else
|
|
|
|
|
// {
|
|
|
|
|
// Navigator.pushAndRemoveUntil(
|
|
|
|
|
// context,
|
|
|
|
|
// FadePage(
|
|
|
|
|
// page: LandingPage(),
|
|
|
|
|
// ),
|
|
|
|
|
// (r) => false)
|
|
|
|
|
// }
|
|
|
|
|
// })
|
|
|
|
|
// .catchError((err) {
|
|
|
|
|
// print(err);
|
|
|
|
|
// //Utils.hideProgressDialog();
|
|
|
|
|
// // GifLoaderDialogUtils.hideDialog(context);
|
|
|
|
|
// });
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
openAppReviewDialog() async {
|
|
|
|
|
|