Skip to content

Commit b30c48b

Browse files
committed
fix(core): made itemHeight attribute of FormBuilderDropdown nullable. Fixes #1015
1 parent 5bbcc37 commit b30c48b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/flutter_form_builder/lib/src/fields/form_builder_dropdown.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ class FormBuilderDropdown<T> extends FormBuilderField<T> {
163163
/// the dropdown button. That's because, in this case, the initial scroll
164164
/// offset is computed as if all of the menu item heights were
165165
/// [kMinInteractiveDimension].
166-
final double itemHeight;
166+
final double? itemHeight;
167167

168168
/// The color for the button's [Material] when it has the input focus.
169169
final Color? focusColor;
@@ -258,7 +258,7 @@ class FormBuilderDropdown<T> extends FormBuilderField<T> {
258258
this.shouldRequestFocus = false,
259259
this.dropdownColor,
260260
this.focusColor,
261-
this.itemHeight = kMinInteractiveDimension,
261+
this.itemHeight,
262262
this.selectedItemBuilder,
263263
this.menuMaxHeight,
264264
this.enableFeedback,

0 commit comments

Comments
 (0)