diff --git a/packages/flet/lib/src/controls/dropdown.dart b/packages/flet/lib/src/controls/dropdown.dart index cb01b45bc..768852063 100644 --- a/packages/flet/lib/src/controls/dropdown.dart +++ b/packages/flet/lib/src/controls/dropdown.dart @@ -68,7 +68,6 @@ class _DropdownControlState extends State with FletStoreMixin { debugPrint("DropdownMenu build: ${widget.control.id}"); return withControls(widget.control.childIds, (context, itemsView) { debugPrint("DropdownMenuFletControlState build: ${widget.control.id}"); - bool disabled = widget.control.isDisabled || widget.parentDisabled; bool editable = widget.control.attrBool("editable", false)!; bool autofocus = widget.control.attrBool("autofocus", false)!; @@ -317,6 +316,8 @@ class _DropdownControlState extends State with FletStoreMixin { helperText: widget.control.attrString("helperText"), //inputFormatters: inputFormatters, //expandedInsets: parseEdgeInsets(widget.control, "expandedInsets"), + expandedInsets: + widget.control.attrInt("expand") != null ? EdgeInsets.zero : null, menuStyle: MenuStyle( backgroundColor: parseWidgetStateColor( Theme.of(context), widget.control, "bgcolor"),