no unfortunatelly not, but i got it working. i created the following GenericShape:
val surfaceShape = GenericShape { size ->
moveTo(size.width, size.height)
lineTo(size.width, 0f)
lineTo(0f, 0f)
lineTo(0f, size.height)
quadraticBezierTo(
x1 = 8.dp.value,
y1 = size.height * 0.9f,
x2 = 16.dp.value,
y2 = size.height * 0.9f,
)
lineTo(size.width - 16.dp.value, size.height * 0.9f)
quadraticBezierTo(
x1 = size.width - 8.dp.value,
y1 = size.height * 0.9f,
x2 = size.width,
y2 = size.height,
)
}
and added this to the
Surface(shape = surfaceShape, color = Color.RED)