https://kotlinlang.org logo
#compose
Title
# compose
g

grandstaish

11/30/2020, 5:30 PM
What’s the thinking behind making
RoundedCornerShape
take a percentage as an
Int
instead of a float between 0f-1f? I keep finding myself creating custom CornerSizes to work around this
n

Nader Jawad

11/30/2020, 6:16 PM
Unfortunately we have a collision between using floats as pixel values so we needed an alternative to represent percentages. @Andrey Kulikov might have some additional thoughts here too.
👍 1
g

grandstaish

11/30/2020, 11:06 PM
Ah right, that's unfortunate!
3 Views