I am using the firebase_ui_auth: ^1.12.1 package to show SignInScreen but I can’t find a way to display a custom message when an error occurs. If, for example, the user enters wrong credentials, I get an exception and a long, not very user-friendly message shows.
SignInScreen(
providers: providers,
actions: [
AuthStateChangeAction<SignedIn>((context, state) {
Navigator.pushReplacementNamed(context, '/profile');
}),
],
);
How can I show a different message or modify how the error message show?
2
Answers
Try this.
There is a class you can use for that. It’s also explained in the official document also.
Check this out example:
Or the network errors: