mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08: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…
x
Reference in New Issue
Block a user