0

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

my failed result

How to add a shadow around the top start and end edges?

Abhimanyu
  • 11,351
  • 7
  • 51
  • 121
Harish Padmanabh
  • 307
  • 4
  • 17

0 Answers0