diff --git a/lib/ui/add_page/widgets/confirmation_popup.dart b/lib/ui/add_page/widgets/confirmation_popup.dart index 61aefcf..b365959 100644 --- a/lib/ui/add_page/widgets/confirmation_popup.dart +++ b/lib/ui/add_page/widgets/confirmation_popup.dart @@ -143,12 +143,6 @@ class _ConfirmationPopupState extends State { TextButton( onPressed: () { widget.exitPopup(context); - ScaffoldMessenger.of(context).showSnackBar( - SnackBar( - content: Text("Enregistré: ${widget.book.title}"), - behavior: SnackBarBehavior.floating, - ), - ); }, child: Text("Ok"), ), diff --git a/lib/ui/add_page/widgets/form_popup.dart b/lib/ui/add_page/widgets/form_popup.dart index 7f6af10..341b247 100644 --- a/lib/ui/add_page/widgets/form_popup.dart +++ b/lib/ui/add_page/widgets/form_popup.dart @@ -243,7 +243,7 @@ class _FullyManualState extends State<_FullyManual> { return null; }, onSaved: (newValue) { - title = newValue?.trim(); + title = newValue; }, ), SizedBox(height: 10), @@ -259,7 +259,7 @@ class _FullyManualState extends State<_FullyManual> { return null; }, onSaved: (newValue) { - author = newValue?.trim(); + author = newValue; }, ), SizedBox(height: 10), diff --git a/lib/ui/add_page/widgets/owner_popup.dart b/lib/ui/add_page/widgets/owner_popup.dart index bdc17b7..c7b76cd 100644 --- a/lib/ui/add_page/widgets/owner_popup.dart +++ b/lib/ui/add_page/widgets/owner_popup.dart @@ -87,7 +87,7 @@ class _OwnerPopupState extends State { ), onSaved: (newValue) { setState(() { - lastName = newValue?.trim(); + lastName = newValue; }); }, validator: (value) { @@ -105,7 +105,7 @@ class _OwnerPopupState extends State { ), onSaved: (newValue) { setState(() { - firstName = newValue?.trim(); + firstName = newValue; }); }, validator: (value) { @@ -123,7 +123,7 @@ class _OwnerPopupState extends State { ), onSaved: (newValue) { setState(() { - contact = newValue?.trim(); + contact = newValue; }); }, validator: (value) { diff --git a/lib/ui/bal_page/widget/pending/bal_pending_screen.dart b/lib/ui/bal_page/widget/pending/bal_pending_screen.dart index 2e57c22..a6f0769 100644 --- a/lib/ui/bal_page/widget/pending/bal_pending_screen.dart +++ b/lib/ui/bal_page/widget/pending/bal_pending_screen.dart @@ -134,7 +134,7 @@ class _EditPopup extends State { return null; }, onSaved: (newValue) { - name = newValue?.trim(); + name = newValue; }, ), Row( diff --git a/lib/ui/home_page/widgets/create_confirmation_popup.dart b/lib/ui/home_page/widgets/create_confirmation_popup.dart index 31e9425..d9205c4 100644 --- a/lib/ui/home_page/widgets/create_confirmation_popup.dart +++ b/lib/ui/home_page/widgets/create_confirmation_popup.dart @@ -61,7 +61,7 @@ class _CreateConfirmationPopupState extends State { return null; }, onSaved: (newValue) { - name = newValue?.trim(); + name = newValue; }, ), Row(