Skip to content

Commit e1a0fcf

Browse files
feat: simplify decoration enabled
1 parent 80c1c83 commit e1a0fcf

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

lib/src/form_builder_field_decoration.dart

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,7 @@ class FormBuilderFieldDecorationState<
5959
widget.errorBuilder != null && efectiveErrorText != null
6060
? widget.errorBuilder!(context, efectiveErrorText)
6161
: null,
62-
enabled:
63-
widget.decoration.enabled
64-
? widget.enabled
65-
: widget.decoration.enabled,
62+
enabled: widget.decoration.enabled ? widget.enabled : false,
6663
);
6764
}
6865

0 commit comments

Comments
 (0)