From 482f56eebf99a7d5aa7940bbbad4acfdd1d9deca Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Wed, 23 Dec 2020 13:37:07 +0200 Subject: [PATCH] Correct custom product fields --- lib/ui/app/forms/custom_field.dart | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/lib/ui/app/forms/custom_field.dart b/lib/ui/app/forms/custom_field.dart index d6b323b20..82160d423 100644 --- a/lib/ui/app/forms/custom_field.dart +++ b/lib/ui/app/forms/custom_field.dart @@ -65,10 +65,18 @@ class _CustomFieldState extends State { switch (fieldType) { case kFieldTypeSingleLineText: + return DecoratedFormField( + controller: _controller, + maxLines: 1, + label: widget.hideFieldLabel ? null : fieldLabel, + onChanged: widget.onChanged, + onSavePressed: widget.onSavePressed, + ); case kFieldTypeMultiLineText: return DecoratedFormField( controller: _controller, - maxLines: fieldType == kFieldTypeSingleLineText ? 1 : 3, + maxLines: 3, + keyboardType: TextInputType.multiline, label: widget.hideFieldLabel ? null : fieldLabel, onChanged: widget.onChanged, onSavePressed: widget.onSavePressed,