|
|
|
|
@ -65,277 +65,223 @@ class _VerificationMethodsScreenState extends State<VerificationMethodsScreen> {
|
|
|
|
|
body: SingleChildScrollView(
|
|
|
|
|
child: Center(
|
|
|
|
|
child: FractionallySizedBox(
|
|
|
|
|
child: Container(
|
|
|
|
|
margin: EdgeInsetsDirectional.fromSTEB(30, 0, 30, 0),
|
|
|
|
|
height: SizeConfig.realScreenHeight * .95,
|
|
|
|
|
width: SizeConfig.realScreenWidth,
|
|
|
|
|
child: Column(
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
// mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 80,
|
|
|
|
|
),
|
|
|
|
|
if(authenticationViewModel.isFromLogin)
|
|
|
|
|
InkWell(
|
|
|
|
|
onTap: (){
|
|
|
|
|
authenticationViewModel.setUnverified(false,isFromLogin: false);
|
|
|
|
|
authenticationViewModel.setAppStatus(APP_STATUS.UNAUTHENTICATED);
|
|
|
|
|
},
|
|
|
|
|
child: Icon(Icons.arrow_back_ios,color: Color(0xFF2B353E),)
|
|
|
|
|
|
|
|
|
|
),
|
|
|
|
|
Container(
|
|
|
|
|
|
|
|
|
|
child: Column(
|
|
|
|
|
widthFactor: 0.9,
|
|
|
|
|
child: Column(
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
// mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 40,
|
|
|
|
|
),
|
|
|
|
|
if(authenticationViewModel.isFromLogin)
|
|
|
|
|
InkWell(
|
|
|
|
|
onTap: (){
|
|
|
|
|
authenticationViewModel.setUnverified(false,isFromLogin: false);
|
|
|
|
|
authenticationViewModel.setAppStatus(APP_STATUS.UNAUTHENTICATED);
|
|
|
|
|
},
|
|
|
|
|
child: Icon(Icons.arrow_back_ios,color: Color(0xFF2B353E),)
|
|
|
|
|
|
|
|
|
|
),
|
|
|
|
|
Column(
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 20,
|
|
|
|
|
),
|
|
|
|
|
authenticationViewModel.user != null && isMoreOption == false
|
|
|
|
|
? Column(
|
|
|
|
|
mainAxisAlignment:
|
|
|
|
|
MainAxisAlignment.spaceEvenly,
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
|
|
|
|
|
AppText(
|
|
|
|
|
TranslationBase.of(context).welcomeBack,
|
|
|
|
|
fontSize:12,
|
|
|
|
|
fontWeight: FontWeight.w700,
|
|
|
|
|
color: Color(0xFF2B353E),
|
|
|
|
|
),
|
|
|
|
|
AppText(
|
|
|
|
|
Helpers.capitalize(authenticationViewModel.user.doctorName),
|
|
|
|
|
fontSize: 24,
|
|
|
|
|
color: Color(0xFF2B353E),
|
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
|
),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 20,
|
|
|
|
|
),
|
|
|
|
|
authenticationViewModel.user != null && isMoreOption == false
|
|
|
|
|
? Column(
|
|
|
|
|
mainAxisAlignment:
|
|
|
|
|
MainAxisAlignment.spaceEvenly,
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
|
|
|
|
|
AppText(
|
|
|
|
|
TranslationBase.of(context).welcomeBack,
|
|
|
|
|
fontSize:12,
|
|
|
|
|
fontWeight: FontWeight.w700,
|
|
|
|
|
color: Color(0xFF2B353E),
|
|
|
|
|
),
|
|
|
|
|
AppText(
|
|
|
|
|
Helpers.capitalize(authenticationViewModel.user.doctorName),
|
|
|
|
|
fontSize: 24,
|
|
|
|
|
color: Color(0xFF2B353E),
|
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
|
),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 20,
|
|
|
|
|
),
|
|
|
|
|
AppText(
|
|
|
|
|
TranslationBase.of(context).accountInfo ,
|
|
|
|
|
fontSize: 16,
|
|
|
|
|
color: Color(0xFF2E303A),
|
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
|
),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 20,
|
|
|
|
|
AppText(
|
|
|
|
|
TranslationBase.of(context).accountInfo ,
|
|
|
|
|
fontSize: 16,
|
|
|
|
|
color: Color(0xFF2E303A),
|
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
|
),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 20,
|
|
|
|
|
),
|
|
|
|
|
Container(
|
|
|
|
|
padding: EdgeInsets.all(15),
|
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
borderRadius: BorderRadius.all(
|
|
|
|
|
Radius.circular(10),
|
|
|
|
|
),
|
|
|
|
|
Container(
|
|
|
|
|
padding: EdgeInsets.all(15),
|
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
borderRadius: BorderRadius.all(
|
|
|
|
|
Radius.circular(10),
|
|
|
|
|
),
|
|
|
|
|
border: Border.all(
|
|
|
|
|
color: HexColor('#707070'),
|
|
|
|
|
width: 0.1),
|
|
|
|
|
),
|
|
|
|
|
child: Row(
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
Column(
|
|
|
|
|
children: [
|
|
|
|
|
|
|
|
|
|
Text(
|
|
|
|
|
TranslationBase.of(context)
|
|
|
|
|
.lastLoginAt,
|
|
|
|
|
overflow:
|
|
|
|
|
TextOverflow.ellipsis,
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
fontFamily: 'Poppins',
|
|
|
|
|
fontSize: 16,
|
|
|
|
|
color: Color(0xFF2E303A),
|
|
|
|
|
fontWeight: FontWeight.w700,),
|
|
|
|
|
border: Border.all(
|
|
|
|
|
color: HexColor('#707070'),
|
|
|
|
|
width: 0.1),
|
|
|
|
|
),
|
|
|
|
|
child: Row(
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
Column(
|
|
|
|
|
children: [
|
|
|
|
|
|
|
|
|
|
Text(
|
|
|
|
|
TranslationBase.of(context)
|
|
|
|
|
.lastLoginAt,
|
|
|
|
|
overflow:
|
|
|
|
|
TextOverflow.ellipsis,
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
fontFamily: 'Poppins',
|
|
|
|
|
fontSize: 16,
|
|
|
|
|
color: Color(0xFF2E303A),
|
|
|
|
|
fontWeight: FontWeight.w700,),
|
|
|
|
|
|
|
|
|
|
),
|
|
|
|
|
Row(
|
|
|
|
|
children: [
|
|
|
|
|
AppText(
|
|
|
|
|
TranslationBase
|
|
|
|
|
.of(context)
|
|
|
|
|
.verifyWith,
|
|
|
|
|
fontSize: 14,
|
|
|
|
|
color: Color(0xFF575757),
|
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
|
),
|
|
|
|
|
AppText(
|
|
|
|
|
authenticationViewModel.getType(
|
|
|
|
|
authenticationViewModel.user
|
|
|
|
|
.logInTypeID,
|
|
|
|
|
context),
|
|
|
|
|
fontSize: 14,
|
|
|
|
|
color: Color(0xFF2B353E),
|
|
|
|
|
|
|
|
|
|
fontWeight: FontWeight.w700,
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
)
|
|
|
|
|
],
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,),
|
|
|
|
|
Column(children: [
|
|
|
|
|
),
|
|
|
|
|
Row(
|
|
|
|
|
children: [
|
|
|
|
|
AppText(
|
|
|
|
|
authenticationViewModel.user.editedOn !=
|
|
|
|
|
null
|
|
|
|
|
? AppDateUtils.getDayMonthYearDateFormatted(
|
|
|
|
|
AppDateUtils.convertStringToDate(
|
|
|
|
|
authenticationViewModel.user
|
|
|
|
|
.editedOn))
|
|
|
|
|
: authenticationViewModel.user.createdOn !=
|
|
|
|
|
null
|
|
|
|
|
? AppDateUtils.getDayMonthYearDateFormatted(
|
|
|
|
|
AppDateUtils.convertStringToDate(authenticationViewModel.user
|
|
|
|
|
.createdOn))
|
|
|
|
|
: '--',
|
|
|
|
|
textAlign:
|
|
|
|
|
TextAlign.right,
|
|
|
|
|
fontSize: 13,
|
|
|
|
|
color: Color(0xFF2E303A),
|
|
|
|
|
fontWeight: FontWeight.w700,
|
|
|
|
|
TranslationBase
|
|
|
|
|
.of(context)
|
|
|
|
|
.verifyWith,
|
|
|
|
|
fontSize: 14,
|
|
|
|
|
color: Color(0xFF575757),
|
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
|
),
|
|
|
|
|
AppText(
|
|
|
|
|
authenticationViewModel.user.editedOn !=
|
|
|
|
|
null
|
|
|
|
|
? AppDateUtils.getHour(
|
|
|
|
|
AppDateUtils.convertStringToDate(
|
|
|
|
|
authenticationViewModel.user
|
|
|
|
|
.editedOn))
|
|
|
|
|
: authenticationViewModel.user.createdOn !=
|
|
|
|
|
null
|
|
|
|
|
? AppDateUtils.getHour(
|
|
|
|
|
AppDateUtils.convertStringToDate(authenticationViewModel.user
|
|
|
|
|
.createdOn))
|
|
|
|
|
: '--',
|
|
|
|
|
textAlign:
|
|
|
|
|
TextAlign.right,
|
|
|
|
|
authenticationViewModel.getType(
|
|
|
|
|
authenticationViewModel.user
|
|
|
|
|
.logInTypeID,
|
|
|
|
|
context),
|
|
|
|
|
fontSize: 14,
|
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
|
color: Color(0xFF575757),
|
|
|
|
|
)
|
|
|
|
|
],
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
color: Color(0xFF2B353E),
|
|
|
|
|
|
|
|
|
|
)
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 20,
|
|
|
|
|
),
|
|
|
|
|
Row(
|
|
|
|
|
children: [
|
|
|
|
|
fontWeight: FontWeight.w700,
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
)
|
|
|
|
|
],
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,),
|
|
|
|
|
Column(children: [
|
|
|
|
|
AppText(
|
|
|
|
|
"Please Verify",
|
|
|
|
|
fontSize: 16,
|
|
|
|
|
color: Color(0xFF2B353E),
|
|
|
|
|
|
|
|
|
|
authenticationViewModel.user.editedOn !=
|
|
|
|
|
null
|
|
|
|
|
? AppDateUtils.getDayMonthYearDateFormatted(
|
|
|
|
|
AppDateUtils.convertStringToDate(
|
|
|
|
|
authenticationViewModel.user
|
|
|
|
|
.editedOn))
|
|
|
|
|
: authenticationViewModel.user.createdOn !=
|
|
|
|
|
null
|
|
|
|
|
? AppDateUtils.getDayMonthYearDateFormatted(
|
|
|
|
|
AppDateUtils.convertStringToDate(authenticationViewModel.user
|
|
|
|
|
.createdOn))
|
|
|
|
|
: '--',
|
|
|
|
|
textAlign:
|
|
|
|
|
TextAlign.right,
|
|
|
|
|
fontSize: 13,
|
|
|
|
|
color: Color(0xFF2E303A),
|
|
|
|
|
fontWeight: FontWeight.w700,
|
|
|
|
|
),
|
|
|
|
|
AppText(
|
|
|
|
|
authenticationViewModel.user.editedOn !=
|
|
|
|
|
null
|
|
|
|
|
? AppDateUtils.getHour(
|
|
|
|
|
AppDateUtils.convertStringToDate(
|
|
|
|
|
authenticationViewModel.user
|
|
|
|
|
.editedOn))
|
|
|
|
|
: authenticationViewModel.user.createdOn !=
|
|
|
|
|
null
|
|
|
|
|
? AppDateUtils.getHour(
|
|
|
|
|
AppDateUtils.convertStringToDate(authenticationViewModel.user
|
|
|
|
|
.createdOn))
|
|
|
|
|
: '--',
|
|
|
|
|
textAlign:
|
|
|
|
|
TextAlign.right,
|
|
|
|
|
fontSize: 14,
|
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
|
color: Color(0xFF575757),
|
|
|
|
|
)
|
|
|
|
|
],
|
|
|
|
|
)
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
|
|
|
|
|
)
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 20,
|
|
|
|
|
),
|
|
|
|
|
Row(
|
|
|
|
|
children: [
|
|
|
|
|
AppText(
|
|
|
|
|
"Please Verify",
|
|
|
|
|
fontSize: 16,
|
|
|
|
|
color: Color(0xFF2B353E),
|
|
|
|
|
|
|
|
|
|
fontWeight: FontWeight.w700,
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
)
|
|
|
|
|
: Column(
|
|
|
|
|
mainAxisAlignment:
|
|
|
|
|
MainAxisAlignment.spaceEvenly,
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
this.onlySMSBox == false
|
|
|
|
|
? Container(
|
|
|
|
|
margin: EdgeInsets.only(bottom: 20, top: 30),
|
|
|
|
|
child: AppText(
|
|
|
|
|
TranslationBase.of(context)
|
|
|
|
|
.verifyLoginWith,
|
|
|
|
|
fontSize: 18,
|
|
|
|
|
color: Color(0xFF2E303A),
|
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
|
textAlign: TextAlign.left,
|
|
|
|
|
),
|
|
|
|
|
)
|
|
|
|
|
: AppText(
|
|
|
|
|
TranslationBase.of(context)
|
|
|
|
|
.verifyFingerprint2,
|
|
|
|
|
fontSize:
|
|
|
|
|
SizeConfig.textMultiplier * 2.5,
|
|
|
|
|
textAlign: TextAlign.start,
|
|
|
|
|
),
|
|
|
|
|
]),
|
|
|
|
|
authenticationViewModel.user != null && isMoreOption == false
|
|
|
|
|
? Column(
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.start,
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
Row(
|
|
|
|
|
mainAxisAlignment:
|
|
|
|
|
MainAxisAlignment.center,
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
Expanded(
|
|
|
|
|
child: InkWell(
|
|
|
|
|
onTap: () =>
|
|
|
|
|
{
|
|
|
|
|
// TODO check this logic it seem it will create bug to us
|
|
|
|
|
authenticateUser(
|
|
|
|
|
AuthMethodTypes
|
|
|
|
|
.Fingerprint, true)
|
|
|
|
|
},
|
|
|
|
|
child: VerificationMethodsList(
|
|
|
|
|
authenticationViewModel:authenticationViewModel,
|
|
|
|
|
authMethodType: SelectedAuthMethodTypesService
|
|
|
|
|
.getMethodsTypeService(
|
|
|
|
|
authenticationViewModel.user
|
|
|
|
|
.logInTypeID),
|
|
|
|
|
authenticateUser:
|
|
|
|
|
(AuthMethodTypes
|
|
|
|
|
authMethodType,
|
|
|
|
|
isActive) =>
|
|
|
|
|
authenticateUser(
|
|
|
|
|
authMethodType,
|
|
|
|
|
isActive),
|
|
|
|
|
)),
|
|
|
|
|
),
|
|
|
|
|
Expanded(
|
|
|
|
|
child: VerificationMethodsList(
|
|
|
|
|
authenticationViewModel:authenticationViewModel,
|
|
|
|
|
authMethodType:
|
|
|
|
|
AuthMethodTypes.MoreOptions,
|
|
|
|
|
onShowMore: () {
|
|
|
|
|
setState(() {
|
|
|
|
|
isMoreOption = true;
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
))
|
|
|
|
|
]),
|
|
|
|
|
])
|
|
|
|
|
: Column(
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.start,
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
onlySMSBox == false
|
|
|
|
|
? Row(
|
|
|
|
|
mainAxisAlignment:
|
|
|
|
|
MainAxisAlignment.center,
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
Expanded(
|
|
|
|
|
child: VerificationMethodsList(
|
|
|
|
|
authenticationViewModel:authenticationViewModel,
|
|
|
|
|
authMethodType:
|
|
|
|
|
AuthMethodTypes.Fingerprint,
|
|
|
|
|
authenticateUser:
|
|
|
|
|
(AuthMethodTypes
|
|
|
|
|
authMethodType,
|
|
|
|
|
isActive) =>
|
|
|
|
|
authenticateUser(
|
|
|
|
|
authMethodType,
|
|
|
|
|
isActive),
|
|
|
|
|
)),
|
|
|
|
|
Expanded(
|
|
|
|
|
],
|
|
|
|
|
)
|
|
|
|
|
: Column(
|
|
|
|
|
mainAxisAlignment:
|
|
|
|
|
MainAxisAlignment.spaceEvenly,
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
this.onlySMSBox == false
|
|
|
|
|
? Container(
|
|
|
|
|
margin: EdgeInsets.only(bottom: 20, top: 30),
|
|
|
|
|
child: AppText(
|
|
|
|
|
TranslationBase.of(context)
|
|
|
|
|
.verifyLoginWith,
|
|
|
|
|
fontSize: 18,
|
|
|
|
|
color: Color(0xFF2E303A),
|
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
|
textAlign: TextAlign.left,
|
|
|
|
|
),
|
|
|
|
|
)
|
|
|
|
|
: AppText(
|
|
|
|
|
TranslationBase.of(context)
|
|
|
|
|
.verifyFingerprint2,
|
|
|
|
|
fontSize:
|
|
|
|
|
SizeConfig.textMultiplier * 2.5,
|
|
|
|
|
textAlign: TextAlign.start,
|
|
|
|
|
),
|
|
|
|
|
]),
|
|
|
|
|
authenticationViewModel.user != null && isMoreOption == false
|
|
|
|
|
? Column(
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.start,
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
Row(
|
|
|
|
|
mainAxisAlignment:
|
|
|
|
|
MainAxisAlignment.center,
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
Expanded(
|
|
|
|
|
child: InkWell(
|
|
|
|
|
onTap: () =>
|
|
|
|
|
{
|
|
|
|
|
// TODO check this logic it seem it will create bug to us
|
|
|
|
|
authenticateUser(
|
|
|
|
|
AuthMethodTypes
|
|
|
|
|
.Fingerprint, true)
|
|
|
|
|
},
|
|
|
|
|
child: VerificationMethodsList(
|
|
|
|
|
authenticationViewModel:authenticationViewModel,
|
|
|
|
|
authMethodType:
|
|
|
|
|
AuthMethodTypes.FaceID,
|
|
|
|
|
authMethodType: SelectedAuthMethodTypesService
|
|
|
|
|
.getMethodsTypeService(
|
|
|
|
|
authenticationViewModel.user
|
|
|
|
|
.logInTypeID),
|
|
|
|
|
authenticateUser:
|
|
|
|
|
(AuthMethodTypes
|
|
|
|
|
authMethodType,
|
|
|
|
|
@ -343,48 +289,95 @@ class _VerificationMethodsScreenState extends State<VerificationMethodsScreen> {
|
|
|
|
|
authenticateUser(
|
|
|
|
|
authMethodType,
|
|
|
|
|
isActive),
|
|
|
|
|
))
|
|
|
|
|
],
|
|
|
|
|
)
|
|
|
|
|
: SizedBox(),
|
|
|
|
|
Row(
|
|
|
|
|
mainAxisAlignment:
|
|
|
|
|
MainAxisAlignment.center,
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
Expanded(
|
|
|
|
|
child: VerificationMethodsList(
|
|
|
|
|
authenticationViewModel:authenticationViewModel,
|
|
|
|
|
authMethodType: AuthMethodTypes
|
|
|
|
|
.SMS,
|
|
|
|
|
authenticateUser:
|
|
|
|
|
(
|
|
|
|
|
AuthMethodTypes authMethodType,
|
|
|
|
|
isActive) =>
|
|
|
|
|
authenticateUser(
|
|
|
|
|
authMethodType, isActive),
|
|
|
|
|
)),
|
|
|
|
|
Expanded(
|
|
|
|
|
child: VerificationMethodsList(
|
|
|
|
|
authenticationViewModel:authenticationViewModel,
|
|
|
|
|
authMethodType:
|
|
|
|
|
AuthMethodTypes.WhatsApp,
|
|
|
|
|
authenticateUser:
|
|
|
|
|
(
|
|
|
|
|
AuthMethodTypes authMethodType,
|
|
|
|
|
isActive) =>
|
|
|
|
|
authenticateUser(
|
|
|
|
|
authMethodType, isActive),
|
|
|
|
|
))
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
]),
|
|
|
|
|
|
|
|
|
|
// )
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
Expanded(
|
|
|
|
|
child: VerificationMethodsList(
|
|
|
|
|
authenticationViewModel:authenticationViewModel,
|
|
|
|
|
authMethodType:
|
|
|
|
|
AuthMethodTypes.MoreOptions,
|
|
|
|
|
onShowMore: () {
|
|
|
|
|
setState(() {
|
|
|
|
|
isMoreOption = true;
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
))
|
|
|
|
|
]),
|
|
|
|
|
])
|
|
|
|
|
: Column(
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.start,
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
onlySMSBox == false
|
|
|
|
|
? Row(
|
|
|
|
|
mainAxisAlignment:
|
|
|
|
|
MainAxisAlignment.center,
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
Expanded(
|
|
|
|
|
child: VerificationMethodsList(
|
|
|
|
|
authenticationViewModel:authenticationViewModel,
|
|
|
|
|
authMethodType:
|
|
|
|
|
AuthMethodTypes.Fingerprint,
|
|
|
|
|
authenticateUser:
|
|
|
|
|
(AuthMethodTypes
|
|
|
|
|
authMethodType,
|
|
|
|
|
isActive) =>
|
|
|
|
|
authenticateUser(
|
|
|
|
|
authMethodType,
|
|
|
|
|
isActive),
|
|
|
|
|
)),
|
|
|
|
|
Expanded(
|
|
|
|
|
child: VerificationMethodsList(
|
|
|
|
|
authenticationViewModel:authenticationViewModel,
|
|
|
|
|
authMethodType:
|
|
|
|
|
AuthMethodTypes.FaceID,
|
|
|
|
|
authenticateUser:
|
|
|
|
|
(AuthMethodTypes
|
|
|
|
|
authMethodType,
|
|
|
|
|
isActive) =>
|
|
|
|
|
authenticateUser(
|
|
|
|
|
authMethodType,
|
|
|
|
|
isActive),
|
|
|
|
|
))
|
|
|
|
|
],
|
|
|
|
|
)
|
|
|
|
|
: SizedBox(),
|
|
|
|
|
Row(
|
|
|
|
|
mainAxisAlignment:
|
|
|
|
|
MainAxisAlignment.center,
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
Expanded(
|
|
|
|
|
child: VerificationMethodsList(
|
|
|
|
|
authenticationViewModel:authenticationViewModel,
|
|
|
|
|
authMethodType: AuthMethodTypes
|
|
|
|
|
.SMS,
|
|
|
|
|
authenticateUser:
|
|
|
|
|
(
|
|
|
|
|
AuthMethodTypes authMethodType,
|
|
|
|
|
isActive) =>
|
|
|
|
|
authenticateUser(
|
|
|
|
|
authMethodType, isActive),
|
|
|
|
|
)),
|
|
|
|
|
Expanded(
|
|
|
|
|
child: VerificationMethodsList(
|
|
|
|
|
authenticationViewModel:authenticationViewModel,
|
|
|
|
|
authMethodType:
|
|
|
|
|
AuthMethodTypes.WhatsApp,
|
|
|
|
|
authenticateUser:
|
|
|
|
|
(
|
|
|
|
|
AuthMethodTypes authMethodType,
|
|
|
|
|
isActive) =>
|
|
|
|
|
authenticateUser(
|
|
|
|
|
authMethodType, isActive),
|
|
|
|
|
))
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
]),
|
|
|
|
|
|
|
|
|
|
// )
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
|