Button(backgroundColor = Color.Yellow) {
Row {
Image(asset = image)
Spacer(4.dp)
Text("Button")
}
}
I can not figure out why I can't use background color on Button.
I followed the Compose Layout codelabs.
There is a problem in backgroundColor and asset in Image().

Use containerColor in place of backgroundColor when using Material 3
Use
ButtonDefaultswhich is available in 1.0.0-alpha09 to alpha11OLD VERSION
The
backgroundColorforButtonno longer work in1.0.0-alpha7Use the below instead