Thread
#compose
    c

    codeslubber

    2 years ago
    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:
    Column {
        Container(width = 180.dp, height = 180.dp){
            Clip(shape = RoundedCornerShape(90.dp)) {
                DrawImage(image = image)
            }
        }
    Container has width and height. 😃
    Andrey Kulikov

    Andrey Kulikov

    2 years ago
    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
    c

    codeslubber

    2 years ago
    If they are removed might be nice to have an easier way to make a circular mask.. 🙂