在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;
});
})
我该如何将箭头图标的颜色更改为白色?