File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
packages/dropdown_button2 Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change 1313- Use decoration hint text as the default value for dropdown button hints [ Flutter core] .
1414- Update SDK constraints: ">=3.4.0 <4.0.0"
1515- Fix DropdownButtonFormField clips text when large text scale is used [ Flutter core] .
16+ - Fix DropdownButtonFormField padding when ButtonTheme.alignedDropdown is true [ Flutter core] .
1617
1718## 3.0.0-beta.21
1819
Original file line number Diff line number Diff line change @@ -725,7 +725,9 @@ class _DropdownButton2State<T> extends State<DropdownButton2<T>> with WidgetsBin
725725 }
726726
727727 final EdgeInsetsGeometry padding =
728- ButtonTheme .of (context).alignedDropdown ? _kAlignedButtonPadding : _kUnalignedButtonPadding;
728+ ButtonTheme .of (context).alignedDropdown && widget._inputDecoration == null
729+ ? _kAlignedButtonPadding
730+ : _kUnalignedButtonPadding;
729731
730732 final buttonHeight = _buttonStyle? .height ?? (widget.isDense ? _denseButtonHeight : null );
731733
You can’t perform that action at this time.
0 commit comments