From a95a84ebfb5f477d3ac06a04032fc65a08348b97 Mon Sep 17 00:00:00 2001 From: Shi-Hao Hong Date: Thu, 10 Oct 2019 13:43:28 -0700 Subject: [PATCH] Revert removing DropdownMenuItem hint/disabledHint wrapper (#42456) --- packages/flutter/lib/src/material/dropdown.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/flutter/lib/src/material/dropdown.dart b/packages/flutter/lib/src/material/dropdown.dart index 67ff4ec0296..6effd9aa692 100644 --- a/packages/flutter/lib/src/material/dropdown.dart +++ b/packages/flutter/lib/src/material/dropdown.dart @@ -1062,7 +1062,7 @@ class _DropdownButtonState extends State> with WidgetsBindi if (widget.hint != null || (!_enabled && widget.disabledHint != null)) { final Widget emplacedHint = _enabled ? widget.hint - : widget.disabledHint ?? widget.hint; + : DropdownMenuItem(child: widget.disabledHint ?? widget.hint); hintIndex = items.length; items.add(DefaultTextStyle( style: _textStyle.copyWith(color: Theme.of(context).hintColor),