Skip to content

Commit 92c2b1b

Browse files
authored
fix expand issue (#5042)
1 parent 0b18221 commit 92c2b1b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/flet/lib/src/controls/dropdown.dart

+2-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@ class _DropdownControlState extends State<DropdownControl> with FletStoreMixin {
6868
debugPrint("DropdownMenu build: ${widget.control.id}");
6969
return withControls(widget.control.childIds, (context, itemsView) {
7070
debugPrint("DropdownMenuFletControlState build: ${widget.control.id}");
71-
7271
bool disabled = widget.control.isDisabled || widget.parentDisabled;
7372
bool editable = widget.control.attrBool("editable", false)!;
7473
bool autofocus = widget.control.attrBool("autofocus", false)!;
@@ -317,6 +316,8 @@ class _DropdownControlState extends State<DropdownControl> with FletStoreMixin {
317316
helperText: widget.control.attrString("helperText"),
318317
//inputFormatters: inputFormatters,
319318
//expandedInsets: parseEdgeInsets(widget.control, "expandedInsets"),
319+
expandedInsets:
320+
widget.control.attrInt("expand") != null ? EdgeInsets.zero : null,
320321
menuStyle: MenuStyle(
321322
backgroundColor: parseWidgetStateColor(
322323
Theme.of(context), widget.control, "bgcolor"),

0 commit comments

Comments
 (0)