|
|
|
@ -17,6 +17,7 @@ import 'package:diplomaticquarterapp/models/Authentication/send_activation_reque
|
|
|
|
import 'package:diplomaticquarterapp/models/InPatientServices/get_admission_info_response_model.dart';
|
|
|
|
import 'package:diplomaticquarterapp/models/InPatientServices/get_admission_info_response_model.dart';
|
|
|
|
import 'package:diplomaticquarterapp/models/InPatientServices/get_admission_request_info_response_model.dart';
|
|
|
|
import 'package:diplomaticquarterapp/models/InPatientServices/get_admission_request_info_response_model.dart';
|
|
|
|
import 'package:diplomaticquarterapp/pages/landing/landing_page.dart';
|
|
|
|
import 'package:diplomaticquarterapp/pages/landing/landing_page.dart';
|
|
|
|
|
|
|
|
import 'package:diplomaticquarterapp/pages/login/login.dart';
|
|
|
|
import 'package:diplomaticquarterapp/pages/login/register_new.dart';
|
|
|
|
import 'package:diplomaticquarterapp/pages/login/register_new.dart';
|
|
|
|
import 'package:diplomaticquarterapp/pages/rateAppointment/rate_appointment_doctor.dart';
|
|
|
|
import 'package:diplomaticquarterapp/pages/rateAppointment/rate_appointment_doctor.dart';
|
|
|
|
import 'package:diplomaticquarterapp/routes.dart';
|
|
|
|
import 'package:diplomaticquarterapp/routes.dart';
|
|
|
|
@ -767,7 +768,18 @@ class _ConfirmLogin extends State<ConfirmLogin> {
|
|
|
|
{
|
|
|
|
{
|
|
|
|
result = CheckActivationCode.fromJson(
|
|
|
|
result = CheckActivationCode.fromJson(
|
|
|
|
result as Map<String, dynamic>),
|
|
|
|
result as Map<String, dynamic>),
|
|
|
|
if (this.registerd_data != null &&
|
|
|
|
if(result.errorCode =='699'){
|
|
|
|
|
|
|
|
//699 block run here
|
|
|
|
|
|
|
|
GifLoaderDialogUtils.hideDialog(context),
|
|
|
|
|
|
|
|
Future.delayed(Duration(seconds: 2), () {
|
|
|
|
|
|
|
|
AppToast.showErrorToast(message: result.errorEndUserMessage);
|
|
|
|
|
|
|
|
Navigator.popUntil(
|
|
|
|
|
|
|
|
context,
|
|
|
|
|
|
|
|
(route) =>
|
|
|
|
|
|
|
|
Utils.route(route, equalsTo: Login));
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
else if (this.registerd_data != null &&
|
|
|
|
this.registerd_data.isRegister == true)
|
|
|
|
this.registerd_data.isRegister == true)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
widget.changePageViewIndex!(1),
|
|
|
|
widget.changePageViewIndex!(1),
|
|
|
|
|