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 13
13
- Use decoration hint text as the default value for dropdown button hints [ Flutter core] .
14
14
- Update SDK constraints: ">=3.4.0 <4.0.0"
15
15
- Fix DropdownButtonFormField clips text when large text scale is used [ Flutter core] .
16
+ - Fix DropdownButtonFormField padding when ButtonTheme.alignedDropdown is true [ Flutter core] .
16
17
17
18
## 3.0.0-beta.21
18
19
Original file line number Diff line number Diff line change @@ -725,7 +725,9 @@ class _DropdownButton2State<T> extends State<DropdownButton2<T>> with WidgetsBin
725
725
}
726
726
727
727
final EdgeInsetsGeometry padding =
728
- ButtonTheme .of (context).alignedDropdown ? _kAlignedButtonPadding : _kUnalignedButtonPadding;
728
+ ButtonTheme .of (context).alignedDropdown && widget._inputDecoration == null
729
+ ? _kAlignedButtonPadding
730
+ : _kUnalignedButtonPadding;
729
731
730
732
final buttonHeight = _buttonStyle? .height ?? (widget.isDense ? _denseButtonHeight : null );
731
733
You can’t perform that action at this time.
0 commit comments