Skip to content

Commit 2c55da6

Browse files
committed
Added missing default for itemHeight.
1 parent 5380285 commit 2c55da6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/src/fields/form_builder_dropdown.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ class FormBuilderDropdown<T> extends FormBuilderField<T> {
211211
this.autofocus = false,
212212
this.dropdownColor,
213213
this.focusColor,
214-
this.itemHeight,
214+
this.itemHeight = kMinInteractiveDimension,
215215
this.selectedItemBuilder,
216216
}) : /*: assert(allowClear == true || clearIcon != null)*/ super(
217217
key: key,
@@ -244,7 +244,7 @@ class FormBuilderDropdown<T> extends FormBuilderField<T> {
244244
children: <Widget>[
245245
Expanded(
246246
child: DropdownButtonHideUnderline(
247-
child: DropdownButton(
247+
child: DropdownButton<T>(
248248
isExpanded: isExpanded,
249249
hint: hint,
250250
items: items,
@@ -266,7 +266,7 @@ class FormBuilderDropdown<T> extends FormBuilderField<T> {
266266
iconEnabledColor: iconEnabledColor,
267267
onChanged: (state.readOnly || !enabled)
268268
? null
269-
: (T value) => _changeValue<T>(field, value),
269+
: (value) => _changeValue<T>(field, value),
270270
onTap: onTap,
271271
focusNode: state.effectiveFocusNode,
272272
autofocus: autofocus,

0 commit comments

Comments
 (0)