【发布时间】:2019-06-18 11:34:50
【问题描述】:
如何改变下拉箭头的颜色?
这就是我想要的:
这就是我得到的
我的小部件:
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(),
),
),
我尝试使用主题包装并更改亮度,但它仅将箭头从白色更改为黑色。我想用其他颜色。
【问题讨论】:
标签: flutter dart colors dropdown