I am trying to develop a custom toolbar in jetpack compose but its shadow is applying to four sides but I want to achieve 3 side shadow(don't needed in top)
Surface(
shape = RectangleShape,
color = toolBarBackground(),
elevation = 12.dp,
) {
...
}
I have tried custom shape, but the problem is path must be closed. I have done a simple tick as follows to overcome that but not working(component size itself changing).
private val CustomThreeSideShape = GenericShape { size, _ ->
moveTo(0f, -100f)
lineTo(0f, size.height)
lineTo(size.width, size.height)
lineTo(size.width, -100f)
lineTo(0f, -100f)
close()
}

