diff --git a/lib/ui/add_page/widgets/form_popup.dart b/lib/ui/add_page/widgets/form_popup.dart index 341b247..7f6af10 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; + 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), diff --git a/lib/ui/add_page/widgets/owner_popup.dart b/lib/ui/add_page/widgets/owner_popup.dart index c7b76cd..bdc17b7 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; + lastName = newValue?.trim(); }); }, validator: (value) { @@ -105,7 +105,7 @@ class _OwnerPopupState extends State { ), onSaved: (newValue) { setState(() { - firstName = newValue; + firstName = newValue?.trim(); }); }, validator: (value) { @@ -123,7 +123,7 @@ class _OwnerPopupState extends State { ), onSaved: (newValue) { setState(() { - contact = newValue; + contact = newValue?.trim(); }); }, 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 a6f0769..2e57c22 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; + name = newValue?.trim(); }, ), Row( diff --git a/lib/ui/home_page/widgets/create_confirmation_popup.dart b/lib/ui/home_page/widgets/create_confirmation_popup.dart index d9205c4..31e9425 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; + name = newValue?.trim(); }, ), Row(