fix issues

fatima
Fatimah Alshammari 4 years ago
parent 98e2c529b7
commit bf68f31227

@ -11,7 +11,7 @@ class Utils {
static void showToast(String message) {
Fluttertoast.showToast(
msg: message, toastLength: Toast.LENGTH_SHORT, gravity: ToastGravity.BOTTOM, timeInSecForIosWeb: 1, backgroundColor: Colors.black54, textColor: Colors.white, fontSize: 16.0);
msg: message, toastLength: Toast.LENGTH_SHORT, gravity: ToastGravity.BOTTOM, timeInSecForIosWeb: 2, backgroundColor: Colors.black54, textColor: Colors.white, fontSize: 16.0);
}
static dynamic getNotNullValue(List<dynamic> list, int index) {

@ -96,9 +96,9 @@ class _ForgetPasswordPageState extends State<ForgetPasswordPage> {
title: "Continue",
width: double.infinity,
onPressed: () {
if (userName.isNum() && type==ClassType.NUMBER) {
if (userName.isNum() && !userName.isValidEmail() && type==ClassType.NUMBER) {
forgetPasswordPhoneOTP(context);
} else if (!userName.isNum() && type==ClassType.EMAIL) {
} else if (userName.isValidEmail() && type==ClassType.EMAIL) {
forgetPasswordEmailOTP(context);
}
},

@ -64,7 +64,7 @@ class RegisterPage extends StatelessWidget {
return DropdownField((DropValue value) {
countryCode = value.subValue;
countryId = value.id;
}, list: dropList, hint: "Chose Country");
}, list: dropList, hint: "Select Country");
} else {
return CircularProgressIndicator();
}

Loading…
Cancel
Save