Hi team, I need `IconButton` in `androidx.wear.com...
# android-studio
y
Hi team, I need
IconButton
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?
I end up to make a Box and make Icon clickable
Copy code
Box(
    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 }
    )
}