Skip to content

Instantly share code, notes, and snippets.

@mukeshsolanki
Created May 27, 2022 05:57
Show Gist options
  • Save mukeshsolanki/2985ecf834a5225589d59dfcec87a035 to your computer and use it in GitHub Desktop.
Save mukeshsolanki/2985ecf834a5225589d59dfcec87a035 to your computer and use it in GitHub Desktop.
@Composable
fun AppIconButton(modifier: Modifier = Modifier, icon: ImageVector, onClick: () -> Unit) {
IconButton(
onClick = onClick,
modifier = modifier
.size(size64dp)
.background(
color = MaterialTheme.colorScheme.onBackground,
shape = RoundedCornerShape(corner4dp)
),
) {
Icon(
imageVector = icon,
contentDescription = null,
tint = MaterialTheme.colorScheme.onPrimary
)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment