change elevatedbutton to textbutton
This commit is contained in:
parent
dc605b1a7c
commit
ab297ffc77
@ -9,21 +9,13 @@ mixin ShowDescImageAdd<T extends StatefulWidget> on State<T> {
|
|||||||
title: Text("Ajouter un evenement"),
|
title: Text("Ajouter un evenement"),
|
||||||
content: Text("${name} n'a pas été trouvé. Voulez-vous l'ajouter ? "),
|
content: Text("${name} n'a pas été trouvé. Voulez-vous l'ajouter ? "),
|
||||||
actions: [
|
actions: [
|
||||||
ElevatedButton(
|
TextButton(
|
||||||
child: Text("Oui"),
|
child: Text("Annuler"),
|
||||||
style: ElevatedButton.styleFrom(
|
|
||||||
padding: EdgeInsets.symmetric(horizontal: 50, vertical: 20),
|
|
||||||
textStyle:
|
|
||||||
TextStyle(fontSize: 15, fontWeight: FontWeight.normal)),
|
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
Navigator.of(context).pop("Yes, Of course!"); // Return value
|
Navigator.of(context).pop("Yes, Of course!"); // Return value
|
||||||
}),
|
}),
|
||||||
ElevatedButton(
|
TextButton(
|
||||||
child: Text("Non"),
|
child: Text("Oui"),
|
||||||
style: ElevatedButton.styleFrom(
|
|
||||||
padding: EdgeInsets.symmetric(horizontal: 50, vertical: 20),
|
|
||||||
textStyle:
|
|
||||||
TextStyle(fontSize: 15, fontWeight: FontWeight.normal)),
|
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
Navigator.of(context).pop("Yes, Of course!"); // Return value
|
Navigator.of(context).pop("Yes, Of course!"); // Return value
|
||||||
}),
|
}),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user