Skip to content

Instantly share code, notes, and snippets.

@ssindher11
Created January 29, 2022 07:55
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 ssindher11/562f9989815eecc7ee16c9bbd1481fc0 to your computer and use it in GitHub Desktop.
Save ssindher11/562f9989815eecc7ee16c9bbd1481fc0 to your computer and use it in GitHub Desktop.
Button(
onClick = {},
colors = ButtonDefaults.buttonColors(backgroundColor = colorResource(id = R.color.brick_red)),
modifier = Modifier
.height(60.dp)
.background(color = colorResource(id = R.color.brick_red))
.constrainAs(bookButton) {
bottom.linkTo(parent.bottom)
start.linkTo(parent.start)
end.linkTo(parent.end)
width = Dimension.fillToConstraints
}
) {
Text(
text = "BOOK TICKETS",
color = Color.White,
fontSize = 22.sp,
fontWeight = FontWeight.Medium
)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment