Unverified Commit a95a84eb authored by Shi-Hao Hong's avatar Shi-Hao Hong Committed by GitHub

Revert removing DropdownMenuItem hint/disabledHint wrapper (#42456)

parent 53cc59f8
......@@ -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),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment