feat: trim user input
This commit is contained in:
parent
821232addc
commit
fa7182d75e
4 changed files with 7 additions and 7 deletions
|
|
@ -243,7 +243,7 @@ class _FullyManualState extends State<_FullyManual> {
|
||||||
return null;
|
return null;
|
||||||
},
|
},
|
||||||
onSaved: (newValue) {
|
onSaved: (newValue) {
|
||||||
title = newValue;
|
title = newValue?.trim();
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
SizedBox(height: 10),
|
SizedBox(height: 10),
|
||||||
|
|
@ -259,7 +259,7 @@ class _FullyManualState extends State<_FullyManual> {
|
||||||
return null;
|
return null;
|
||||||
},
|
},
|
||||||
onSaved: (newValue) {
|
onSaved: (newValue) {
|
||||||
author = newValue;
|
author = newValue?.trim();
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
SizedBox(height: 10),
|
SizedBox(height: 10),
|
||||||
|
|
|
||||||
|
|
@ -87,7 +87,7 @@ class _OwnerPopupState extends State<OwnerPopup> {
|
||||||
),
|
),
|
||||||
onSaved: (newValue) {
|
onSaved: (newValue) {
|
||||||
setState(() {
|
setState(() {
|
||||||
lastName = newValue;
|
lastName = newValue?.trim();
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
validator: (value) {
|
validator: (value) {
|
||||||
|
|
@ -105,7 +105,7 @@ class _OwnerPopupState extends State<OwnerPopup> {
|
||||||
),
|
),
|
||||||
onSaved: (newValue) {
|
onSaved: (newValue) {
|
||||||
setState(() {
|
setState(() {
|
||||||
firstName = newValue;
|
firstName = newValue?.trim();
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
validator: (value) {
|
validator: (value) {
|
||||||
|
|
@ -123,7 +123,7 @@ class _OwnerPopupState extends State<OwnerPopup> {
|
||||||
),
|
),
|
||||||
onSaved: (newValue) {
|
onSaved: (newValue) {
|
||||||
setState(() {
|
setState(() {
|
||||||
contact = newValue;
|
contact = newValue?.trim();
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
validator: (value) {
|
validator: (value) {
|
||||||
|
|
|
||||||
|
|
@ -134,7 +134,7 @@ class _EditPopup extends State<EditPopup> {
|
||||||
return null;
|
return null;
|
||||||
},
|
},
|
||||||
onSaved: (newValue) {
|
onSaved: (newValue) {
|
||||||
name = newValue;
|
name = newValue?.trim();
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
Row(
|
Row(
|
||||||
|
|
|
||||||
|
|
@ -61,7 +61,7 @@ class _CreateConfirmationPopupState extends State<CreateConfirmationPopup> {
|
||||||
return null;
|
return null;
|
||||||
},
|
},
|
||||||
onSaved: (newValue) {
|
onSaved: (newValue) {
|
||||||
name = newValue;
|
name = newValue?.trim();
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
Row(
|
Row(
|
||||||
|
|
|
||||||
Reference in a new issue