valentinilk / compose-shimmer

A simple shimmer library for Jetpack Compose.
https://valentinilk.github.io/compose-shimmer/
Apache License 2.0
673 stars 37 forks source link

How to change shimmer background color? #34

Closed ehsannarmani closed 4 months ago

ehsannarmani commented 4 months ago

Hello, thank you for this library.

I want to change my shimmer box background color, but it seems that color is depend on parent color.

For example its my code:

Column(
        modifier = Modifier
            .fillMaxSize()
            .applyStandardPaddings(bottom = 0.dp)
            .shimmer()
    ) {
        Box(modifier = Modifier
            .fillMaxWidth()
            .height(250.dp)
            .clip(RoundedCornerShape(8.dp))
            .background(Color.White)
        )
    }

even i set white background to that color, its the result: image