如何更改下拉菜单箭头的颜色?
这是我想要的效果:
这就是我得到的
我的小部件:
DropdownButtonHideUnderline (
child: DropdownButton<String>(
isExpanded: true,
value: dropdownValue,
onChanged: (String newValue) {
setState(() {
dropdownValue = newValue;
});
},
items: <String>['Bank Deposit', 'Mobile Payment', 'Cash Pickup']
.map<DropdownMenuItem<String>>((String value) {
return DropdownMenuItem<String>(
value: value,
child: Text(value),
);
})
.toList(),
),
),
我尝试使用主题和更改亮度进行包装,但它只会将箭头从白色变为黑色。我想使用其他颜色。