@SuppressLint("UnusedMaterialScaffoldPaddingParameter")
@Preview(showBackground = true)
@Composable
fun scaffold() {
Scaffold(
topBar = {
TopAppBar {
Text(text = stringResource(id = R.string.app_name))
}
},
bottomBar = {
BottomAppBar(
cutoutShape = MaterialTheme.shapes.small.copy(CornerSize(percent = 50))
) {
}
},
floatingActionButton = {
FloatingActionButton(onClick = { /*TODO*/ }) {
Icon(Icons.Filled.Add, contentDescription = "")
}
},
isFloatingActionButtonDocked = true
) {
main()
}
}