Is there a way to add your own shape size in Jetpack Compose using Kotlin extensions?
Default Shapes class implementation in Jetpack Compose:
val Shapes = Shapes(
small = RoundedCornerShape(4.dp),
medium = RoundedCornerShape(4.dp),
large = RoundedCornerShape(0.dp)
)
This is how I tried to add a new shape size:
val Shapes.ExtraLarge: CornerBasedShape
get() = RoundedCornerShape(16.dp)
But I am getting the Receiver parameter is never used warning and cannot use the new size in my Composables. Thanks for any advice!