change alert message
This commit is contained in:
@@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user