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?


Try this.