`BottomNavigation` doesn't cast a shadow upwards, ...
# compose
p
BottomNavigation
doesn't cast a shadow upwards, although I've set
elevation = 16.dp
to it.
Update: It is there but not visible enough. I've tried setting elevation to a bigger value like
64.dp
Using
Modifier.shadow
doesn't work at all
a
This probably happens because of the way android casts shadows
the implied lightsource is slightly above the upper part of the screen
so the bottom bar would receive a shadow cast below (which is outside of the screen area)
j
p
@Alex Material spec shows shadow upwards https://material.io/components/bottom-navigation#specs

https://storage.googleapis.com/spec-host-backup/mio-components%2Fassets%2F16_mdeMoej9KYqE6_7gV0qw6H-1arSKmK%2Fspecs-bottomnav-mobile-portrait.png

a
@pavi2410 It does, but its a very subtle little thing, compared to the one it would cast below. The elevation just has a lot less impact on shadows cast upward as opposed to downward.