|
|
|
@ -71,7 +71,7 @@ class _VerificationMethodsScreenState extends State<VerificationMethodsScreen> {
|
|
|
|
|
// mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 40,
|
|
|
|
|
height: SizeConfig.heightMultiplier * 3,
|
|
|
|
|
),
|
|
|
|
|
if(authenticationViewModel.isFromLogin)
|
|
|
|
|
InkWell(
|
|
|
|
@ -85,7 +85,7 @@ class _VerificationMethodsScreenState extends State<VerificationMethodsScreen> {
|
|
|
|
|
Column(
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 20,
|
|
|
|
|
height: SizeConfig.heightMultiplier*4,
|
|
|
|
|
),
|
|
|
|
|
authenticationViewModel.user != null && isMoreOption == false
|
|
|
|
|
? Column(
|
|
|
|
@ -96,27 +96,27 @@ class _VerificationMethodsScreenState extends State<VerificationMethodsScreen> {
|
|
|
|
|
|
|
|
|
|
AppText(
|
|
|
|
|
TranslationBase.of(context).welcomeBack,
|
|
|
|
|
fontSize:12,
|
|
|
|
|
fontSize:SizeConfig.getTextMultiplierBasedOnWidth()*4,
|
|
|
|
|
fontWeight: FontWeight.w700,
|
|
|
|
|
color: Color(0xFF2B353E),
|
|
|
|
|
),
|
|
|
|
|
AppText(
|
|
|
|
|
Helpers.capitalize(authenticationViewModel.user.doctorName),
|
|
|
|
|
fontSize: 24,
|
|
|
|
|
fontSize: SizeConfig.getTextMultiplierBasedOnWidth()*6,
|
|
|
|
|
color: Color(0xFF2B353E),
|
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
|
),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 20,
|
|
|
|
|
height: SizeConfig.heightMultiplier*4,
|
|
|
|
|
),
|
|
|
|
|
AppText(
|
|
|
|
|
TranslationBase.of(context).accountInfo ,
|
|
|
|
|
fontSize: 16,
|
|
|
|
|
fontSize: SizeConfig.getTextMultiplierBasedOnWidth()*5,
|
|
|
|
|
color: Color(0xFF2E303A),
|
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
|
),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 20,
|
|
|
|
|
height: SizeConfig.heightMultiplier*4
|
|
|
|
|
),
|
|
|
|
|
Container(
|
|
|
|
|
padding: EdgeInsets.all(15),
|
|
|
|
@ -142,7 +142,7 @@ class _VerificationMethodsScreenState extends State<VerificationMethodsScreen> {
|
|
|
|
|
TextOverflow.ellipsis,
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
fontFamily: 'Poppins',
|
|
|
|
|
fontSize: 16,
|
|
|
|
|
fontSize: SizeConfig.getTextMultiplierBasedOnWidth() *4.5,
|
|
|
|
|
color: Color(0xFF2E303A),
|
|
|
|
|
fontWeight: FontWeight.w700,),
|
|
|
|
|
|
|
|
|
@ -153,7 +153,7 @@ class _VerificationMethodsScreenState extends State<VerificationMethodsScreen> {
|
|
|
|
|
TranslationBase
|
|
|
|
|
.of(context)
|
|
|
|
|
.verifyWith,
|
|
|
|
|
fontSize: 14,
|
|
|
|
|
fontSize: SizeConfig.getTextMultiplierBasedOnWidth() *4.5,
|
|
|
|
|
color: Color(0xFF575757),
|
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
|
),
|
|
|
|
@ -162,7 +162,7 @@ class _VerificationMethodsScreenState extends State<VerificationMethodsScreen> {
|
|
|
|
|
authenticationViewModel.user
|
|
|
|
|
.logInTypeID,
|
|
|
|
|
context),
|
|
|
|
|
fontSize: 14,
|
|
|
|
|
fontSize: SizeConfig.getTextMultiplierBasedOnWidth() *4.5,
|
|
|
|
|
color: Color(0xFF2B353E),
|
|
|
|
|
|
|
|
|
|
fontWeight: FontWeight.w700,
|
|
|
|
@ -187,7 +187,7 @@ class _VerificationMethodsScreenState extends State<VerificationMethodsScreen> {
|
|
|
|
|
: '--',
|
|
|
|
|
textAlign:
|
|
|
|
|
TextAlign.right,
|
|
|
|
|
fontSize: 13,
|
|
|
|
|
fontSize: SizeConfig.getTextMultiplierBasedOnWidth() *4.5,
|
|
|
|
|
color: Color(0xFF2E303A),
|
|
|
|
|
fontWeight: FontWeight.w700,
|
|
|
|
|
),
|
|
|
|
@ -206,7 +206,7 @@ class _VerificationMethodsScreenState extends State<VerificationMethodsScreen> {
|
|
|
|
|
: '--',
|
|
|
|
|
textAlign:
|
|
|
|
|
TextAlign.right,
|
|
|
|
|
fontSize: 14,
|
|
|
|
|
fontSize: SizeConfig.getTextMultiplierBasedOnWidth() *4.5,
|
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
|
color: Color(0xFF575757),
|
|
|
|
|
)
|
|
|
|
@ -218,19 +218,25 @@ class _VerificationMethodsScreenState extends State<VerificationMethodsScreen> {
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 20,
|
|
|
|
|
height: SizeConfig.heightMultiplier*3,
|
|
|
|
|
),
|
|
|
|
|
|
|
|
|
|
Row(
|
|
|
|
|
children: [
|
|
|
|
|
|
|
|
|
|
//todo add translation
|
|
|
|
|
AppText(
|
|
|
|
|
"Please Verify",
|
|
|
|
|
fontSize: 16,
|
|
|
|
|
fontSize: SizeConfig.getTextMultiplierBasedOnWidth() * 5,
|
|
|
|
|
color: Color(0xFF2B353E),
|
|
|
|
|
|
|
|
|
|
fontWeight: FontWeight.w700,
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
)
|
|
|
|
|
),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: SizeConfig.heightMultiplier*2,
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
)
|
|
|
|
|
: Column(
|
|
|
|
@ -244,7 +250,7 @@ class _VerificationMethodsScreenState extends State<VerificationMethodsScreen> {
|
|
|
|
|
child: AppText(
|
|
|
|
|
TranslationBase.of(context)
|
|
|
|
|
.verifyLoginWith ,
|
|
|
|
|
fontSize: 18,
|
|
|
|
|
fontSize: SizeConfig.getTextMultiplierBasedOnWidth()* 4 ,
|
|
|
|
|
color: Color(0xFF2E303A),
|
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
|
textAlign: TextAlign.left,
|
|
|
|
@ -254,7 +260,7 @@ class _VerificationMethodsScreenState extends State<VerificationMethodsScreen> {
|
|
|
|
|
TranslationBase.of(context)
|
|
|
|
|
.verifyFingerprint2,
|
|
|
|
|
fontSize:
|
|
|
|
|
SizeConfig.textMultiplier * 2.5,
|
|
|
|
|
SizeConfig.getTextMultiplierBasedOnWidth()* 4,
|
|
|
|
|
textAlign: TextAlign.start,
|
|
|
|
|
),
|
|
|
|
|
]),
|
|
|
|
@ -383,34 +389,32 @@ class _VerificationMethodsScreenState extends State<VerificationMethodsScreen> {
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
bottomSheet: authenticationViewModel.user == null ? SizedBox(height: 0,) : Container(
|
|
|
|
|
height: 90,
|
|
|
|
|
// color: Colors.green,
|
|
|
|
|
height: SizeConfig.heightMultiplier * 10 ,
|
|
|
|
|
width: double.infinity,
|
|
|
|
|
child: Center(
|
|
|
|
|
child: FractionallySizedBox(
|
|
|
|
|
widthFactor: 0.9,
|
|
|
|
|
child: Column(
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.end,
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
SecondaryButton(
|
|
|
|
|
label: TranslationBase
|
|
|
|
|
AppButton(
|
|
|
|
|
title: TranslationBase
|
|
|
|
|
.of(context)
|
|
|
|
|
.useAnotherAccount,
|
|
|
|
|
color: Color(0xFFD02127),
|
|
|
|
|
//fontWeight: FontWeight.w700,
|
|
|
|
|
onTap: () {
|
|
|
|
|
|
|
|
|
|
fontWeight: FontWeight.w700,
|
|
|
|
|
height: SizeConfig.heightMultiplier * (SizeConfig.isHeightShort? 8 : 6),
|
|
|
|
|
hPadding: 1,
|
|
|
|
|
|
|
|
|
|
onPressed: () {
|
|
|
|
|
authenticationViewModel.deleteUser();
|
|
|
|
|
authenticationViewModel.setAppStatus(APP_STATUS.UNAUTHENTICATED);
|
|
|
|
|
// Navigator.pushAndRemoveUntil(
|
|
|
|
|
// AppGlobal.CONTEX,
|
|
|
|
|
// FadePage(
|
|
|
|
|
// page: RootPage(),
|
|
|
|
|
// ),
|
|
|
|
|
// (r) => false);
|
|
|
|
|
// Navigator.of(context).pushNamed(LOGIN);
|
|
|
|
|
},
|
|
|
|
|
),
|
|
|
|
|
|
|
|
|
|
SizedBox(height: 25,)
|
|
|
|
|
// SizedBox(height: SizeConfig.heightMultiplier * (SizeConfig.isHeightShort? 1 : 3),)
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|