Skip to content

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

@Micoder-dev

Description

@Micoder-dev
                ```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

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions