Luukas
04/26/2021, 10:13 PMorangy
Luukas
04/26/2021, 10:25 PM@Composable
fun MenuButton(text: String, goTo: () -> Unit) {
TextButton(
onClick = { goTo },
shape = RectangleShape,
modifier = Modifier
.fillMaxWidth()
){
Text(text = text,
textAlign = TextAlign.Left,
color = Color.Black)
}
}
Since the button will repeat itself a bunch of times I made into a Composable elementColton Idle
04/26/2021, 10:46 PMLuukas
04/26/2021, 10:50 PMColton Idle
04/26/2021, 10:52 PMLuukas
04/26/2021, 11:12 PMLuukas
04/26/2021, 11:18 PMColton Idle
04/26/2021, 11:27 PMColton Idle
04/26/2021, 11:28 PMChris Sinco [G]
04/27/2021, 1:02 AMChris Sinco [G]
04/27/2021, 1:04 AMChris Sinco [G]
04/27/2021, 1:25 AMLuukas
04/27/2021, 3:50 AMColton Idle
04/27/2021, 7:50 AMorangy
BasicButton
(but there is BasicText
), button is just a clickable box with a row with content inside. All the rest is just default look and click animations.