Orhan Tozan

    Orhan Tozan

    1 year ago
    I have the following code
    OutlinedButton(shape = RoundedCornerShape(28.dp))
    It looks like it only applies it to the top corners? Is this a bug?
    I guess the numbers were too large, percent = 50 fixed it for me
    Andrey Kulikov

    Andrey Kulikov

    1 year ago
    yeah, if the sum of requested corner sizes is larger than the available size the top one wins
    natario1

    natario1

    1 year ago
    Wouldn't it be better to apply them proportionally. So in this case act as 50%
    Andrey Kulikov

    Andrey Kulikov

    1 year ago
    maybe, but in this case you would never realise you incorrectly specified the size
    this obviously wrong behaviour makes you realise you specified something wrong
    Nader Jawad

    Nader Jawad

    1 year ago
    Hmm I'm not sure, I think if you tried to draw a round rect with a large enough radii it would automatically clamp to the largest possible size. Drawing a round rect directly vs recreating it through paths should generate the same result
    Andrey Kulikov

    Andrey Kulikov

    1 year ago
    yeah, we can change it if you think it is inconsistent with other places. feel free to file a bug
    Nader Jawad

    Nader Jawad

    1 year ago
    Thanks Andrey, I just filed one to track this.