Compare commits
2 commits
5923e8dcc5
...
fa7182d75e
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
fa7182d75e | ||
|
|
821232addc |
5 changed files with 13 additions and 7 deletions
|
|
@ -143,6 +143,12 @@ class _ConfirmationPopupState extends State<ConfirmationPopup> {
|
|||
TextButton(
|
||||
onPressed: () {
|
||||
widget.exitPopup(context);
|
||||
ScaffoldMessenger.of(context).showSnackBar(
|
||||
SnackBar(
|
||||
content: Text("Enregistré: ${widget.book.title}"),
|
||||
behavior: SnackBarBehavior.floating,
|
||||
),
|
||||
);
|
||||
},
|
||||
child: Text("Ok"),
|
||||
),
|
||||
|
|
|
|||
|
|
@ -243,7 +243,7 @@ class _FullyManualState extends State<_FullyManual> {
|
|||
return null;
|
||||
},
|
||||
onSaved: (newValue) {
|
||||
title = newValue;
|
||||
title = newValue?.trim();
|
||||
},
|
||||
),
|
||||
SizedBox(height: 10),
|
||||
|
|
@ -259,7 +259,7 @@ class _FullyManualState extends State<_FullyManual> {
|
|||
return null;
|
||||
},
|
||||
onSaved: (newValue) {
|
||||
author = newValue;
|
||||
author = newValue?.trim();
|
||||
},
|
||||
),
|
||||
SizedBox(height: 10),
|
||||
|
|
|
|||
|
|
@ -87,7 +87,7 @@ class _OwnerPopupState extends State<OwnerPopup> {
|
|||
),
|
||||
onSaved: (newValue) {
|
||||
setState(() {
|
||||
lastName = newValue;
|
||||
lastName = newValue?.trim();
|
||||
});
|
||||
},
|
||||
validator: (value) {
|
||||
|
|
@ -105,7 +105,7 @@ class _OwnerPopupState extends State<OwnerPopup> {
|
|||
),
|
||||
onSaved: (newValue) {
|
||||
setState(() {
|
||||
firstName = newValue;
|
||||
firstName = newValue?.trim();
|
||||
});
|
||||
},
|
||||
validator: (value) {
|
||||
|
|
@ -123,7 +123,7 @@ class _OwnerPopupState extends State<OwnerPopup> {
|
|||
),
|
||||
onSaved: (newValue) {
|
||||
setState(() {
|
||||
contact = newValue;
|
||||
contact = newValue?.trim();
|
||||
});
|
||||
},
|
||||
validator: (value) {
|
||||
|
|
|
|||
|
|
@ -134,7 +134,7 @@ class _EditPopup extends State<EditPopup> {
|
|||
return null;
|
||||
},
|
||||
onSaved: (newValue) {
|
||||
name = newValue;
|
||||
name = newValue?.trim();
|
||||
},
|
||||
),
|
||||
Row(
|
||||
|
|
|
|||
|
|
@ -61,7 +61,7 @@ class _CreateConfirmationPopupState extends State<CreateConfirmationPopup> {
|
|||
return null;
|
||||
},
|
||||
onSaved: (newValue) {
|
||||
name = newValue;
|
||||
name = newValue?.trim();
|
||||
},
|
||||
),
|
||||
Row(
|
||||
|
|
|
|||
Reference in a new issue