print('The account already exists for that email.');
}
showSnackBar(
showAlertError(
context,e.message!);// Displaying the usual firebase error message
}
}
...
...
@@ -92,7 +92,7 @@ class FirebaseAuthMethods {
Navigator.pushNamed(context,'/demo');
}
}onFirebaseAuthExceptioncatch(e){
showDialog(context:context,builder:(context)=>AlertDialog(title:Text(e.message!,style:TextStyle(color:Colors.yellow),),backgroundColor:Colors.red,));// Displaying the error message
showAlertError(context,e.message!);// Displaying the error message