问题描述
我想自定义IconButton的颜色,而不是使用在TopAppBar上设置的默认值,但是在android.compose.material中没有更改它的slot api。
Scaffold(
topBar = {
TopAppBar(
title = {
Text(text = "LayoutsCodelab")
},actions = {
IconButton(onClick = { /* doSomething() */ }) { // <- why it has the theme color and how to custom it.
Icon(Icons.Filled.Favorite)
}
}
)
}
)