Yingding Wang
01/02/2023, 12:06 PMIconButton
in androidx.wear.compose.material
, just noticed that I shall not use androidx.compose.material
with compose wear. An Icon in androidx.wear.compose.material
can not be attached with a click event. As I wrapped Icon in a Button, it attaches a shadow. How can I get ride of this shadow?Yingding Wang
01/02/2023, 12:28 PMBox(
modifier = Modifier
.size(32.dp)
.padding(0.dp)
.weight(1f),
) {
Icon(
imageVector = <http://Icons.Outlined.Info|Icons.Outlined.Info>,
contentDescription = stringResource(R.string.txt),
modifier = Modifier
.align(Alignment.Center)
.clickable { openDialog = true }
)
}