Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change elevation color in Compose?

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

like image 419
Besart Avatar asked Oct 14 '25 18:10

Besart


1 Answers

You can use the shadow modifier. For example:

         modifier = Modifier
        .shadow(ambientColor = Color.Blue, elevation = 15.dp)  
like image 62
Code Poet Avatar answered Oct 17 '25 07:10

Code Poet



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!