https://kotlinlang.org logo
c

codeslubber

12/24/2019, 9:57 PM
Found a pretty hilarious thing in the tiny Compose demo: the container that is added to use a masking shape for the image, uses a modifier, when in fact, it should look like this:
Copy code
Column {
    Container(width = 180.dp, height = 180.dp){
        Clip(shape = RoundedCornerShape(90.dp)) {
            DrawImage(image = image)
        }
    }
Container has width and height. :)
a

Andrey Kulikov

12/25/2019, 2:48 AM
both variants have the same behavior. it is not yet finalized will we have Container at all, but looks like this width and height params will be removed
👍🏻 1
c

codeslubber

12/25/2019, 6:21 PM
If they are removed might be nice to have an easier way to make a circular mask.. 🙂