设置color无效,一直是显示的默认的灰色
IconButton(
iconSize: 30,
color:
DJKColors.color_e9e9e9,
icon: Icon(Icons.star),
)
修改后的代码,增加onPressed解决
IconButton(
iconSize: 30,
color:
DJKColors.color_e9e9e9,
icon: Icon(Icons.star),
onPressed: () {}
)