Has anyone used a BadgedBox on an IconButton? I ha...
# compose
z
Has anyone used a BadgedBox on an IconButton? I have this code but it results in the badge being really far off
Copy code
BadgedBox(
    badge = {
        Badge {
            Text("1")
        }
    }
) {
    IconButton(onClick = onClickNotifications) {
        Icon(
            imageVector = Icons.Default.Notifications,
            contentDescription = stringResource(R.string.notifications)
        )
    }
}
if i put the BadgedBox inside the IconButton then i get this