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,