Hello, how can I avoid a composable begin drawn ou...
# compose
l
Hello, how can I avoid a composable begin drawn outside scope? I'd like to do something like the picture with blue background.
c
Modifier.clip()
is what you’re looking for. Unlike Android views, Compose does not clip layouts by default
e
Android's default is like
Modifier.clipToBounds
if you want to clip to a shape you can pass it in
Modifier.clip
as Casey says
l
Thanks! both solutions worked đź‘Ť