如何为某些可组合功能添加自定义应用栏?
例如,
第一个功能有一个应用栏,而第二个没有。
Scaffold(){
bottomBar = {
BottomAppBar(
// Defaults to null, that is, No cutout
cutoutShape = MaterialTheme.shapes.small.copy(
CornerSize(percent = 50)
)
) {
MainScreen(navController)
}
}
}
@Composable
fun TestView() {
Scaffold(
bottomBar = {
BottomAppBar {
}
}
) {
Text(text = "second view...")
}
}