Is there a known way to only show elevation on the...
# compose
c
Is there a known way to only show elevation on the bottom of a particular composable? I have a Surface that I want to have elevation, but it's also showing elevation on the top as well. Although ever so slightly. The basic layout for this is
Copy code
Column {
    TopAppBar(){}
    Divider()
    Surface() {} // Essentially an elevated Row. Picture below
    Content() {}
}
I know elevation is just a shadow on the canvas Rect under the hood. I tried to create a Shape object to try and define the path for the Shadow to occur in, i.e I removed the top line from the Rect Path, but that didn't seem to have any effect.
b
You could utilize scaffold and make it your topBar
Add the topAppBar, divider and your surface to it
c
Oh yeah. That's true. I'll try that, thanks!