Releases: skydoves/landscapist
Releases · skydoves/landscapist
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()
)
}