我想在jetpack compose中创建动画bottomAppBar(类似于图像),但是jetpack compose中的Fab位置只是中心或末端,我需要至少将FAB移动到左侧,我的代码是:

@Composable
fun BottomBarSample() {
Scaffold(
floatingActionButton = {
FloatingActionButton(
shape = CircleShape,
onClick = {},
) {
Icon(imageVector = Icons.Filled.Add, contentDescription = "icon")
}
},
floatingActionButtonPosition = FabPosition.End,
isFloatingActionButtonDocked = true,
bottomBar = {
BottomAppBar(backgroundColor = Color.Cyan, cutoutShape = CircleShape) {
}
}
){
//body
}
}
Run Code Online (Sandbox Code Playgroud) android floating-action-button android-layout-direction android-jetpack-compose