Skip to content

Commit b342835

Browse files
committed
Fix dropdown value not found crash
1 parent 6ae0b32 commit b342835

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/src/transformers/node_transformers/passive_dropdown_transformer.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ class PassiveDropdownWidget extends StatelessWidget {
189189
splashColor: node.properties.splashColor?.toFlutterColor(),
190190
),
191191
child: DropdownButton<Object>(
192-
value: value,
192+
value: items.isEmpty || !items.contains(value) ? null : value,
193193
isDense: node.properties.dense,
194194
isExpanded: node.properties.expanded,
195195
autofocus: node.properties.autoFocus,

0 commit comments

Comments
 (0)