From ab297ffc77c84e10e3c0c2ef565a4b235ce3822b Mon Sep 17 00:00:00 2001 From: Valentin CZERYBA Date: Thu, 25 Jul 2024 22:34:35 +0200 Subject: [PATCH] change elevatedbutton to textbutton --- covas_mobile/lib/classes/descriptionImage.dart | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/covas_mobile/lib/classes/descriptionImage.dart b/covas_mobile/lib/classes/descriptionImage.dart index ad9543e..b6243d8 100644 --- a/covas_mobile/lib/classes/descriptionImage.dart +++ b/covas_mobile/lib/classes/descriptionImage.dart @@ -9,21 +9,13 @@ mixin ShowDescImageAdd on State { title: Text("Ajouter un evenement"), content: Text("${name} n'a pas été trouvé. Voulez-vous l'ajouter ? "), actions: [ - ElevatedButton( - child: Text("Oui"), - style: ElevatedButton.styleFrom( - padding: EdgeInsets.symmetric(horizontal: 50, vertical: 20), - textStyle: - TextStyle(fontSize: 15, fontWeight: FontWeight.normal)), + TextButton( + child: Text("Annuler"), onPressed: () { Navigator.of(context).pop("Yes, Of course!"); // Return value }), - ElevatedButton( - child: Text("Non"), - style: ElevatedButton.styleFrom( - padding: EdgeInsets.symmetric(horizontal: 50, vertical: 20), - textStyle: - TextStyle(fontSize: 15, fontWeight: FontWeight.normal)), + TextButton( + child: Text("Oui"), onPressed: () { Navigator.of(context).pop("Yes, Of course!"); // Return value }),