Hi I am creating an app with Jetpack Compose I am and using Card composable with elevation. I need to change the elevation color, but I don't know how.
Asked
Active
Viewed 2,021 times
2 Answers
2
You can use the shadow modifier. For example:
modifier = Modifier
.shadow(ambientColor = Color.Blue, elevation = 15.dp)

Code Poet
- 6,222
- 2
- 29
- 50
-
can you explain your answer, not working for me – Bolt UIX Nov 24 '22 at 09:55
0
MaterialTheme.colorScheme.surfaceColorAtElevation(3.dp)

k4dima
- 6,070
- 5
- 41
- 39
-
1Answer needs supporting information Your answer could be improved with additional supporting information. Please [edit] to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers [in the help center](https://stackoverflow.com/help/how-to-answer). – moken Jul 17 '23 at 03:22