在Flutter中,我试图将DropdownButton的图标(向下箭头图标)的颜色更改为白色。
我尝试在没有帮助的情况下使用style属性。文本颜色变为白色,但图标仍为默认的灰色。
DropdownButton(
style: TextStyle(color: Colors.white, decorationColor:
Colors.white),
items: this.items,
value: null,
hint: Text(SaveOptions[_saveOption], style: TextStyle(color:
Colors.white)),
onChanged: (selectedOption) {
setState(() {
_saveOption = selectedOption;
});
})
Run Code Online (Sandbox Code Playgroud)
如何将箭头图标的颜色更改为白色?