Skip to content

Instantly share code, notes, and snippets.

@zivkesten
Last active December 20, 2021 13:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zivkesten/f31dbb98e35d39c06c592bf4a6db806c to your computer and use it in GitHub Desktop.
Save zivkesten/f31dbb98e35d39c06c592bf4a6db806c to your computer and use it in GitHub Desktop.
ClicakbleTextButton
@Composable
private fun ClickableTextButton(
text: String,
onClick: () -> Unit
) {
Box {
TextButton(
onClick = onClick,
modifier = Modifier
.padding(start = 15.dp, end = 15.dp, bottom = 20.dp)
.fillMaxWidth()
) {
Text(
text = text,
fontFamily = latoFamily,
fontWeight = FontWeight.Normal,
fontSize = 14.sp,
color = colorResource(id = R.color.lemonade_night),
modifier = Modifier.alpha(0.5f)
)
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment