How to disabled animation for cached images in compose?
Open
- 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
Assessment
This issue has not been assessed yet.