Can I somehow override Fab's default content padding?
a
Alex
09/14/2023, 7:54 AM
you could just use a surface with a circular shape and do it yourself
Alex
09/14/2023, 7:54 AM
the fab is not magic 🙂
s
statmark56
09/14/2023, 7:59 AM
Yeah eventually went with custom one.
I thought it would be simpler if fab support in first place.
👍 1
a
Alex
09/14/2023, 8:03 AM
I heard one of the material Team guys say that they don’t want to support too many customization features in their composable to keep them simple, since it’s so easy to build components yourself in jetpack compose. I guess this is one of those instances here.
✔️ 1
x
xoangon
09/14/2023, 8:54 AM
You could also use
Modifier.layout { }
and change the dimensions of the frame where that Composable is drawn (just as if you cut an image)
xoangon
09/14/2023, 8:55 AM
Well… not sure of my answer though. It may not cut the FAB but re-scale it. I’d stick with the custom implementation, anyway. That’s more explicit