Jetpack Compose app bar actions no ripple effect

141 Views Asked by At

I have an app bar in my application:

SmallTopAppBar(
    title = { Text("✨StarDict✨") },
    actions = {
        IconButton(
            onClick = {...}
        ) {
            Icon(
                painterResource(R.drawable.ic_dict),
                tint = Color.White,
                contentDescription = "",
            )
        }

        IconButton(
            onClick = {...}
        ) {
            Icon(
                Icons.Default.Settings,
                tint = Color.White,
                contentDescription = "",
            )
        }

        IconButton(
            onClick = {...}
        ) {
            Icon(
                Icons.Default.Info,
                tint = Color.White,
                contentDescription = "",
            )
        }
    },
    colors = colors,
)

However, the action buttons don't have a ripple effect. All other buttons do, but not the action buttons in the app bar.

Is there a way to add the ripple effect? Thank you!

0

There are 0 best solutions below