Skip to content

Instantly share code, notes, and snippets.

@merttoptas
Created February 26, 2022 15:28
Show Gist options
  • Save merttoptas/d9dd1c7cd4e5cd85a9bd04be652c7bdf to your computer and use it in GitHub Desktop.
Save merttoptas/d9dd1c7cd4e5cd85a9bd04be652c7bdf to your computer and use it in GitHub Desktop.
@Composable
fun BloomButton(
modifier: Modifier,
onClick: () -> Unit,
colors: ButtonColors = ButtonDefaults.outlinedButtonColors(),
borderColor: Color,
text: String,
enabled: Boolean = true,
) {
Button(
onClick = onClick,
modifier = modifier
.fillMaxWidth()
.height(50.dp),
enabled = enabled,
colors = colors,
shape = RoundedCornerShape(50),
border = BorderStroke(
width = 1.dp,
color = borderColor
),
) {
BloomText(
modifier = Modifier,
text = text,
style = MaterialTheme.typography.subtitle1,
color = Color.White
)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment