Button(
modifier = Modifier
.width(100.dp)
.height(100.dp),
onClick = {
}
){
Text(text = "hello hi")
}
@Composable
fun CircularButtonDemo() {
Button(
onClick = { /* Handle the click */ },
shape = CircleShape, // Sets the button shape to a circle
colors = ButtonDefaults.buttonColors(containerColor = Color.Blue), // Optional: sets the background color
modifier = Modifier
.size(80.dp) // Sets the size of the button (height and width will be the same)
) {
Text(
text = "Go",
color = Color.White,
style = MaterialTheme.typography.bodyMedium
)
}
}