change alert message

This commit is contained in:
2024-12-30 22:34:17 +01:00
parent 938b677b6e
commit 43d77f778b
7 changed files with 55 additions and 45 deletions

View File

@@ -32,7 +32,7 @@ class LoginDemo extends StatefulWidget {
_LoginDemoState createState() => _LoginDemoState();
}
class _LoginDemoState extends State<LoginDemo> with ShowErrorDialog {
class _LoginDemoState extends State<LoginDemo> with ShowAlertDialog {
TextEditingController inputPseudo = TextEditingController();
TextEditingController inputPassword = TextEditingController();
Future<void> _login(BuildContext context) async {
@@ -120,13 +120,13 @@ class _LoginDemoState extends State<LoginDemo> with ShowErrorDialog {
}
break;
}
showErrorDialog(context, text);
showAlertDialog(context, "Erreur serveur", text);
}
} catch (e) {
showErrorDialog(context, "${e}");
showAlertDialog(context, "Erreur", "${e}");
}
} else {
showErrorDialog(context, "Champ vide");
showAlertDialog(context, "Erreur", "Champ vide");
}
}