Releases: skydoves/landscapist
Releases · skydoves/landscapist
1.3.4
🎉 Released a new version 1.3.4
! 🎉
What's New?
- Now Fresco supports animated GIF and Webp images.
dependencies {
implementation "com.github.skydoves:landscapist-fresco-websupport:1.3.4"
}
Fresco supports animated GIF and WebP Images using FrescoWebImage
composable function. We should pass the AbstractDraweeController that can be created like the below. You can reference how to build the DraweeController, and Supported URIs for setting URI addresses. Also, we can load a normal image (jpeg, png, etc) using the custom controller.
FrescoWebImage(
controllerBuilder = Fresco.newDraweeControllerBuilder()
.setUri(poster.gif) // GIF or Webp image url.
.setAutoPlayAnimations(true),
modifier = Modifier
.fillMaxWidth()
.height(300.dp)
)
1.3.3
🎉 Released new version 1.3.3
! 🎉
What's New?
circularRevealedEnabled
andcircularRevealedDuration
attribute has been removed.
Instead, we can useCircularReveal
for implementing circular reveal animation. (#41)
GlideImage(
imageModel = imageUrl,
circularReveal = CircularReveal(duration = 250, onFinishListener = { //..// } ),
- Added
CircularRevealFinishListener
inCircularReveal
. We can listen when the animation is finished.
1.3.2
🎉 Released a new version 1.3.2
! 🎉
What's New?
Palette
We can extract major (theme) color profiles using BitmapPalette
. Basically, we should use BitmapPalette
for extracting the major colors from images. You can reference which kinds of colors can be extracted here.
var palette by remember { mutableStateOf<Palette?>(null) }
GlideImage( // CoilImage, FrescoImage also can be used.
imageModel = poster?.poster!!,
bitmapPalette = BitmapPalette {
palette = it
}
)
Crossfade(
targetState = palette,
modifier = Modifier
.padding(horizontal = 8.dp)
.size(45.dp)
) {
Box(
modifier = Modifier
.background(color = Color(it?.lightVibrantSwatch?.rgb ?: 0))
.fillMaxSize()
)
}