https://kotlinlang.org logo
#compose
Title
# compose
g

galex

07/21/2020, 5:23 PM
Do we have a Composable for bottom bar with a cradled fab like this one -> https://material.io/develop/android/components/app-bars-bottom ?
m

matvei

07/21/2020, 5:24 PM
Use
Scaffold
. There you can set
floatingActionbutton
and
bottomBar
and specify whether fab should be docked or not
g

galex

07/21/2020, 5:25 PM
Thanks!
m

matvei

07/21/2020, 5:25 PM
And then specify cradle shape in
BottomAppBar
If you want to have cutout
g

galex

07/21/2020, 5:36 PM
Got it!
Copy code
BottomAppBar(cutoutShape = CircleShape)
@matvei Does
BottomNavigation
support also a cutout?
m

matvei

07/21/2020, 5:51 PM
No, it doesn't, not per material spec. I thought about it and I can see no reason why we can't have it, but need to clarify with material UX team first. File a bug!
cc @Louis Pullen-Freilich [G]
g

galex

07/21/2020, 6:26 PM
Here you go, I hope it’s complete: https://issuetracker.google.com/issues/161814388
👍 1