@Composable
fun BottomAppBarExample() {
Scaffold(
bottomBar = {
BottomAppBar(
actions = {
IconButton(onClick = { /* do something */ }) {
Icon(painter = rememberVectorPainter(AppIcons.Check), contentDescription = "Localized description")
}
IconButton(onClick = { /* do something */ }) {
Icon(
painter = rememberVectorPainter(AppIcons.Edit),
contentDescription = "Localized description",
)
}
IconButton(onClick = { /* do something */ }) {
Icon(
painter = rememberVectorPainter(AppIcons.Mic),
contentDescription = "Localized description",
)
}
IconButton(onClick = { /* do something */ }) {
Icon(
painter = rememberVectorPainter(AppIcons.Image),
contentDescription = "Localized description",
)
}
},
floatingActionButton = {
FloatingActionButton(
onClick = { /* do something */ },
containerColor = BottomAppBarDefaults.bottomAppBarFabColor,
elevation = FloatingActionButtonDefaults.bottomAppBarFabElevation()
) {
Icon(painter = rememberVectorPainter(AppIcons.Add), "Localized description")
}
}
)
},
) { innerPadding ->
Text(
modifier = Modifier.padding(innerPadding),
text = "Example of a scaffold with a bottom app bar."
)
}
}