Halo guys, is there a way to make centered FAB in ...
# compose
a
Halo guys, is there a way to make centered FAB in bottomnavbar material3?
b
Copy code
Scaffold(
        bottomBar = {
            //Bottom App Bar
        },
        floatingActionButtonPosition = FabPosition.Center,
        floatingActionButton = {
            //FloatingActionButton
        }
    ){
    
    }
a
Yes, the FAB is centered but not as a bottom bar, I want the FAB inline with bottombar
b
Copy code
modifier = Modifier.offset(y=40.dp),
Add modifier with offset in FloatingActionButton
a
Ooh okay I will try, thanks for the information