change alert message
This commit is contained in:
@@ -54,7 +54,7 @@ class DisplayPictureScreen extends StatefulWidget {
|
||||
|
||||
// A widget that displays the picture taken by the user.
|
||||
class DisplayPictureScreenState extends State<DisplayPictureScreen>
|
||||
with ShowDescImageAdd, ShowErrorDialog, TickerProviderStateMixin {
|
||||
with ShowDescImageAdd, ShowAlertDialog, TickerProviderStateMixin {
|
||||
late AnimationController controller;
|
||||
@override
|
||||
void initState() {
|
||||
@@ -80,7 +80,7 @@ class DisplayPictureScreenState extends State<DisplayPictureScreen>
|
||||
|
||||
Future<void> displayError(String e) async {
|
||||
print("problem gemini : ${e}");
|
||||
showErrorDialog(context,
|
||||
showAlertDialog(context, 'Error IA',
|
||||
"L'IA de Google n'a pas su analyser l'image. Recommecer avec une autre");
|
||||
}
|
||||
|
||||
@@ -119,14 +119,15 @@ class DisplayPictureScreenState extends State<DisplayPictureScreen>
|
||||
builder: (_) => ItemMenu(title: events[0]["id"])));
|
||||
}
|
||||
} else {
|
||||
showErrorDialog(context,
|
||||
showAlertDialog(context, 'Erreur de reponse',
|
||||
"response status code update : ${responseGet.statusCode}");
|
||||
}
|
||||
} else {
|
||||
showErrorDialog(context, "Erreur de token");
|
||||
showAlertDialog(context, "Erreur de reponse", "Erreur de token");
|
||||
}
|
||||
} catch (e) {
|
||||
showErrorDialog(context, "Erreur de format de donnée fourni par l'IA");
|
||||
showAlertDialog(
|
||||
context, "Erreur IA", "Erreur de format de donnée fourni par l'IA");
|
||||
}
|
||||
|
||||
//showDescImageAddDialog(context, message);
|
||||
|
Reference in New Issue
Block a user