Skip to content

Coil preloading does not work if contentScale is specified #2710

Answered by colinrtwhite
Mortalite asked this question in Q&A
Discussion options

You must be logged in to vote

If you enable debug logging it will log why the image isn't served from the cache. You likely need to set Scale.FILL on your image request to match the ContentScale.Crop. Without it, the image will be smaller than needed to fill the AsyncImage.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@Mortalite
Comment options

Comment options

You must be logged in to vote
1 reply
@Mortalite
Comment options

Answer selected by Mortalite
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants