mirror of
https://github.com/flutter/flutter
synced 2024-10-13 03:32:55 +00:00
Revert removing DropdownMenuItem hint/disabledHint wrapper (#42456)
This commit is contained in:
parent
53cc59f82c
commit
a95a84ebfb
|
@ -1062,7 +1062,7 @@ class _DropdownButtonState<T> extends State<DropdownButton<T>> with WidgetsBindi
|
|||
if (widget.hint != null || (!_enabled && widget.disabledHint != null)) {
|
||||
final Widget emplacedHint = _enabled
|
||||
? widget.hint
|
||||
: widget.disabledHint ?? widget.hint;
|
||||
: DropdownMenuItem<Widget>(child: widget.disabledHint ?? widget.hint);
|
||||
hintIndex = items.length;
|
||||
items.add(DefaultTextStyle(
|
||||
style: _textStyle.copyWith(color: Theme.of(context).hintColor),
|
||||
|
|
Loading…
Reference in a new issue