I am trying to build a bottom nav bar with curved edges at the top start and top end.
When setting a shadow, it is not showing the shadow correctly.
How to set a shadow around? Or am I doing any wrong thing?
Code
BottomNavigation(
backgroundColor = Color(0xffffff),
modifier = Modifier
.graphicsLayer {
clip = true
shape = RoundedCornerShape(topStart = 30.dp, topEnd = 30.dp)
shadowElevation = 2.2f
}
.height(100.dp),
elevation = 8.dp,
)
Screenshot
How to add a shadow around the top start and end edges?