Skip to content

Instantly share code, notes, and snippets.

@aritra-tech
Last active May 9, 2024 15:03
Show Gist options
  • Save aritra-tech/6648881e297118b0f1cbf16b3cdfea6f to your computer and use it in GitHub Desktop.
Save aritra-tech/6648881e297118b0f1cbf16b3cdfea6f to your computer and use it in GitHub Desktop.
@Composable
fun ButtonExample() {
Column(
Modifier.fillMaxSize(),
horizontalAlignment = Alignment.CenterHorizontally,
verticalArrangement = Arrangement.Center
) {
Button(
onClick = { },
colors = ButtonDefaults.buttonColors(backgroundColor = Color.Gray)
) {
Icon(
painter = painterResource(id = R.drawable.person),
contentDescription = "call",
)
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment