|
|
|
|
@ -27,7 +27,7 @@ import 'package:local_auth/local_auth.dart';
|
|
|
|
|
import 'package:provider/provider.dart';
|
|
|
|
|
|
|
|
|
|
import '../../config/size_config.dart';
|
|
|
|
|
import '../../core/viewModel/auth_view_model.dart';
|
|
|
|
|
import '../../core/viewModel/doctor_profile_view_model.dart';
|
|
|
|
|
import '../../landing_page.dart';
|
|
|
|
|
import '../../routes.dart';
|
|
|
|
|
import '../../util/dr_app_shared_pref.dart';
|
|
|
|
|
@ -97,7 +97,7 @@ class _VerificationMethodsState extends State<VerificationMethods> {
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
|
AuthViewModel authProv = Provider.of<AuthViewModel>(context);
|
|
|
|
|
DoctorProfileViewModel authProv = Provider.of<DoctorProfileViewModel>(context);
|
|
|
|
|
projectsProvider = Provider.of<ProjectViewModel>(context);
|
|
|
|
|
return FutureBuilder(
|
|
|
|
|
future: Future.wait([_loggedUserFuture]),
|
|
|
|
|
@ -331,7 +331,7 @@ class _VerificationMethodsState extends State<VerificationMethods> {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
sendActivationCodeByOtpNotificationType(
|
|
|
|
|
oTPSendType, AuthViewModel authProv) async {
|
|
|
|
|
oTPSendType, DoctorProfileViewModel authProv) async {
|
|
|
|
|
// TODO : build enum for verfication method
|
|
|
|
|
if (oTPSendType == 1 || oTPSendType == 2) {
|
|
|
|
|
GifLoaderDialogUtils.showMyDialog(context);
|
|
|
|
|
@ -370,7 +370,7 @@ class _VerificationMethodsState extends State<VerificationMethods> {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
sendActivationCodeVerificationScreen(
|
|
|
|
|
oTPSendType, AuthViewModel authProv) async {
|
|
|
|
|
oTPSendType, DoctorProfileViewModel authProv) async {
|
|
|
|
|
GifLoaderDialogUtils.showMyDialog(context);
|
|
|
|
|
ActivationCodeForVerificationScreenModel activationCodeModel = ActivationCodeForVerificationScreenModel(
|
|
|
|
|
iMEI: user.iMEI,
|
|
|
|
|
@ -734,7 +734,7 @@ class _VerificationMethodsState extends State<VerificationMethods> {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
checkActivationCode(AuthViewModel authProv, {value}) async {
|
|
|
|
|
checkActivationCode(DoctorProfileViewModel authProv, {value}) async {
|
|
|
|
|
CheckActivationCodeRequestModel checkActivationCodeForDoctorApp =
|
|
|
|
|
new CheckActivationCodeRequestModel(
|
|
|
|
|
zipCode:
|
|
|
|
|
|