3

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.

enter image description here

Besart
  • 309
  • 1
  • 4
  • 22

2 Answers2

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
0
MaterialTheme.colorScheme.surfaceColorAtElevation(3.dp)
k4dima
  • 6,070
  • 5
  • 41
  • 39
  • 1
    Answer 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