Open yaroslav-storozhik opened 1 month ago
"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.
"com.github.bumptech.glide:compose", version = "1.0.0-beta01"
In clasic glide we can make cutom DrawableTransitionOption
But transition api in compose does not provide any parameters.