Colton Idle
06/17/2022, 9:12 PMephemient
06/17/2022, 9:29 PMFrancesc
06/17/2022, 9:35 PMFrancesc
06/17/2022, 9:37 PMScaffold
then topBar
is just a Composable
lambda so you can pass whatever you want in there, but given that this is not following material guidelines you won't find an out-of-the-box solution in the compose librariesJavier
06/17/2022, 10:23 PMColton Idle
06/18/2022, 12:12 AMChris Sinco [G]
06/18/2022, 3:19 AMChris Sinco [G]
06/18/2022, 3:21 AMColton Idle
06/20/2022, 3:12 PMFrancesc
06/20/2022, 3:19 PMactions
version of the TopAppBar
, you can add 2 buttons in there
topBar = {
TopAppBar(
modifier = Modifier.fillMaxWidth(),
title = {
Text(
text = "My app title"
)
},
actions = {
Button(
onClick = {},
modifier = Modifier.padding(horizontal = 8.dp)
) {
Text(
text = "Cancel"
)
}
Button(
onClick = {},
modifier = Modifier.padding(horizontal = 8.dp)
) {
Text(
text = "Done"
)
}
}
)
}
Chris Sinco [G]
06/20/2022, 5:01 PM