feat: snackbar on book instance save
This commit is contained in:
parent
5923e8dcc5
commit
821232addc
1 changed files with 6 additions and 0 deletions
|
|
@ -143,6 +143,12 @@ class _ConfirmationPopupState extends State<ConfirmationPopup> {
|
||||||
TextButton(
|
TextButton(
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
widget.exitPopup(context);
|
widget.exitPopup(context);
|
||||||
|
ScaffoldMessenger.of(context).showSnackBar(
|
||||||
|
SnackBar(
|
||||||
|
content: Text("Enregistré: ${widget.book.title}"),
|
||||||
|
behavior: SnackBarBehavior.floating,
|
||||||
|
),
|
||||||
|
);
|
||||||
},
|
},
|
||||||
child: Text("Ok"),
|
child: Text("Ok"),
|
||||||
),
|
),
|
||||||
|
|
|
||||||
Reference in a new issue