Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

contentScale particularly FillBounds dosen't works when using animations #431

Open
Micoder-dev opened this issue Feb 10, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@Micoder-dev
Copy link

Micoder-dev commented Feb 10, 2024

                ```GlideImage(modifier = Modifier.fillMaxWidth(),
                    imageModel = { newKids.imgUrl },
                    component = rememberImageComponent {
                    +ShimmerPlugin(
                        shimmer = com.skydoves.landscapist.placeholder.shimmer.Shimmer.Flash(
                            baseColor = Color.DarkGray,
                            highlightColor = Color.LightGray,
                        )
                    )
                    +CircularRevealPlugin(duration = 800)
                }, imageOptions = ImageOptions(contentScale = ContentScale.FillBounds, alignment = Alignment.Center),
                    failure = {
                    Image(painter = painterResource(id = R.drawable.logo), contentDescription = null, modifier = Modifier.fillMaxSize().background(Color.Transparent), contentScale = ContentScale.Crop)
                })```

here is used "CircularRevealPlugin" Now by default the content scale acts as crop even if I specified Fillbounds, if I remove the animation contentScale fillbounds works as expected

@skydoves skydoves self-assigned this Feb 12, 2024
@skydoves skydoves added the bug Something isn't working label Feb 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants