bumptech / bumptech/glide

How to disabled animation for cached images in compose?

Open
#5,442 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
35k
Forks
6.2k
Avg merge
1d 11h
Merged PRs (30d)
8

Description

"com.github.bumptech.glide:compose", version = "1.0.0-beta01"

In clasic glide we can make cutom DrawableTransitionOption

```
fun optionalCrossFade(): DrawableTransitionOptions {
return DrawableTransitionOptions.with { dataSource, isFirstResource ->
if (dataSource == DataSource.DATA_DISK_CACHE || dataSource == DataSource.RESOURCE_DISK_CACHE || dataSource == DataSource.MEMORY_CACHE||dataSource==DataSource.LOCAL) {
null
} else {
DrawableCrossFadeFactory.Builder(300).build()
.build(dataSource, isFirstResource)
}
}
}
```

But transition api in compose does not provide any parameters.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.