Revert removing DropdownMenuItem hint/disabledHint wrapper (#42456)
This commit is contained in:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user