|
|
|
|
@ -811,35 +811,74 @@ class _ConfirmLogin extends State<ConfirmLogin> {
|
|
|
|
|
// GifLoaderDialogUtils.hideDialog(context);
|
|
|
|
|
getToDoCount();
|
|
|
|
|
checkIfIsInPatient();
|
|
|
|
|
// appointmentRateViewModel
|
|
|
|
|
// .getIsLastAppointmentRatedList(projectViewModel.isArabic ? 1 : 2)
|
|
|
|
|
// .then((value) => {
|
|
|
|
|
// GifLoaderDialogUtils.hideDialog(AppGlobal.context),
|
|
|
|
|
// if (appointmentRateViewModel.isHaveAppointmentNotRate)
|
|
|
|
|
// {
|
|
|
|
|
// Navigator.pushAndRemoveUntil(
|
|
|
|
|
// context,
|
|
|
|
|
// FadePage(
|
|
|
|
|
// page: RateAppointmentDoctor(),
|
|
|
|
|
// ),
|
|
|
|
|
// (r) => false)
|
|
|
|
|
// }
|
|
|
|
|
// else
|
|
|
|
|
// {
|
|
|
|
|
Navigator.pushAndRemoveUntil(
|
|
|
|
|
context,
|
|
|
|
|
FadePage(
|
|
|
|
|
page: LandingPage(),
|
|
|
|
|
),
|
|
|
|
|
(r) => false);
|
|
|
|
|
// },
|
|
|
|
|
insertIMEI();
|
|
|
|
|
// })
|
|
|
|
|
// .catchError((err) {
|
|
|
|
|
// print(err);
|
|
|
|
|
// });
|
|
|
|
|
appointmentRateViewModel
|
|
|
|
|
.getIsLastAppointmentRatedList(projectViewModel.isArabic ? 1 : 2)
|
|
|
|
|
.then((value) => {
|
|
|
|
|
GifLoaderDialogUtils.hideDialog(AppGlobal.context),
|
|
|
|
|
if (appointmentRateViewModel.isHaveAppointmentNotRate)
|
|
|
|
|
{
|
|
|
|
|
Navigator.pushAndRemoveUntil(
|
|
|
|
|
context,
|
|
|
|
|
FadePage(
|
|
|
|
|
page: RateAppointmentDoctor(),
|
|
|
|
|
),
|
|
|
|
|
(r) => false)
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
Navigator.pushAndRemoveUntil(
|
|
|
|
|
context,
|
|
|
|
|
FadePage(
|
|
|
|
|
page: LandingPage(),
|
|
|
|
|
),
|
|
|
|
|
(r) => false)
|
|
|
|
|
},
|
|
|
|
|
insertIMEI()
|
|
|
|
|
})
|
|
|
|
|
.catchError((err) {
|
|
|
|
|
print(err);
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// goToHome() async {
|
|
|
|
|
// authenticatedUserObject.isLogin = true;
|
|
|
|
|
// appointmentRateViewModel.isLogin = true;
|
|
|
|
|
// projectViewModel.isLogin = true;
|
|
|
|
|
// projectViewModel.user = authenticatedUserObject.user;
|
|
|
|
|
// await authenticatedUserObject.getUser(getUser: true);
|
|
|
|
|
//
|
|
|
|
|
// // GifLoaderDialogUtils.hideDialog(context);
|
|
|
|
|
// getToDoCount();
|
|
|
|
|
// checkIfIsInPatient();
|
|
|
|
|
// // appointmentRateViewModel
|
|
|
|
|
// // .getIsLastAppointmentRatedList(projectViewModel.isArabic ? 1 : 2)
|
|
|
|
|
// // .then((value) => {
|
|
|
|
|
// // GifLoaderDialogUtils.hideDialog(AppGlobal.context),
|
|
|
|
|
// // if (appointmentRateViewModel.isHaveAppointmentNotRate)
|
|
|
|
|
// // {
|
|
|
|
|
// // Navigator.pushAndRemoveUntil(
|
|
|
|
|
// // context,
|
|
|
|
|
// // FadePage(
|
|
|
|
|
// // page: RateAppointmentDoctor(),
|
|
|
|
|
// // ),
|
|
|
|
|
// // (r) => false)
|
|
|
|
|
// // }
|
|
|
|
|
// // else
|
|
|
|
|
// // {
|
|
|
|
|
// Navigator.pushAndRemoveUntil(
|
|
|
|
|
// context,
|
|
|
|
|
// FadePage(
|
|
|
|
|
// page: LandingPage(),
|
|
|
|
|
// ),
|
|
|
|
|
// (r) => false);
|
|
|
|
|
// // },
|
|
|
|
|
// insertIMEI();
|
|
|
|
|
// // })
|
|
|
|
|
// // .catchError((err) {
|
|
|
|
|
// // print(err);
|
|
|
|
|
// // });
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
loading(flag) {
|
|
|
|
|
setState(() {
|
|
|
|
|
isLoading = flag;
|
|
|
|
|
|