fix issues

fatima
Fatimah Alshammari 4 years ago
parent 98e2c529b7
commit bf68f31227

@ -11,7 +11,7 @@ class Utils {
static void showToast(String message) { static void showToast(String message) {
Fluttertoast.showToast( 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) { static dynamic getNotNullValue(List<dynamic> list, int index) {

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

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

Loading…
Cancel
Save