Flutter 如何更改 DropDownButton 的字体颜色

Flutter how to change font color of DropDownButton

我正在尝试将我的 DropdownButton 的字体颜色更改为黑色,我想将其更改为白色,有什么办法可以做到这一点吗?

感谢您的宝贵时间。

您可以使用样式参数。 heres the docs

style: TextStyle(color: Colors.deepPurple)