fixed issues

fatima
Fatimah Alshammari 4 years ago
parent b19e042b1e
commit 3274875215

@ -97,9 +97,11 @@ class _ForgetPasswordPageState extends State<ForgetPasswordPage> {
width: double.infinity, width: double.infinity,
txtColor: Colors.white, txtColor: Colors.white,
onPressed: () { onPressed: () {
if(userName.isNum()) { // _mobile ? forgetPasswordPhoneOTP(context)
// : forgetPasswordEmailOTP(context);
if(userName.isNum() && _mobile) {
forgetPasswordPhoneOTP(context); forgetPasswordPhoneOTP(context);
}else{ }else if (!userName.isNum() && _email) {
forgetPasswordEmailOTP(context); forgetPasswordEmailOTP(context);
} }
}, },

@ -79,10 +79,10 @@ class _LoginWithPasswordState extends State<LoginWithPassword> {
50.height, 50.height,
"Enter Mobile or Email".toText24(), "Enter Mobile or Email".toText24(),
mFlex(1), mFlex(1),
_mobile ? Column( Column(
children: [ children: [
TxtField( TxtField(
hint: "Enter phone number", hint: _mobile ? "Enter phone number" : "Enter Email",
value: phoneNum, value: phoneNum,
onChanged: (v) { onChanged: (v) {
phoneNum = v; phoneNum = v;
@ -99,17 +99,7 @@ class _LoginWithPasswordState extends State<LoginWithPassword> {
}, },
), ),
], ],
): _email ? ),
TxtField(
hint: "Enter Email",
value: password,
isPasswordEnabled: true,
maxLines: 1,
onChanged: (v) {
password = v;
},
)
:Container(),
10.height, 10.height,
Row( Row(
mainAxisAlignment: MainAxisAlignment.end, mainAxisAlignment: MainAxisAlignment.end,

Loading…
Cancel
Save