mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-10-09 20:33:40 +02:00
Fixes square loading image on Follow packs
This commit is contained in:
@@ -76,17 +76,17 @@ fun MyAsyncImage(
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
WaitAndDisplay {
|
WaitAndDisplay {
|
||||||
Box(contentAlignment = Alignment.Center) {
|
|
||||||
if (onLoadingBackground != null) {
|
if (onLoadingBackground != null) {
|
||||||
|
Box(loadedImageModifier, contentAlignment = Alignment.Center) {
|
||||||
onLoadingBackground()
|
onLoadingBackground()
|
||||||
LoadingAnimation(Size40dp, Size6dp)
|
LoadingAnimation(Size40dp, Size6dp)
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
DisplayUrlWithLoadingSymbol(imageUrl)
|
DisplayUrlWithLoadingSymbol(imageUrl)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
is AsyncImagePainter.State.Error -> {
|
is AsyncImagePainter.State.Error -> {
|
||||||
if (onError != null) {
|
if (onError != null) {
|
||||||
if (ratio != null) {
|
if (ratio != null) {
|
||||||
|
Reference in New Issue
Block a user