Can I somehow override Fab's default content paddi...
# compose
s
Can I somehow override Fab's default content padding?
a
you could just use a surface with a circular shape and do it yourself
the fab is not magic 🙂
s
Yeah eventually went with custom one. I thought it would be simpler if fab support in first place.
👍 1
a
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
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)
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