Fix blocked image placeholder content scale

This commit is contained in:
FooIbar committed 2024-09-14 16:06:09 +08:00
1 parent e8c1c80ce5
commit 7e4c910cd7
1 file changed
+1
@@ -104,6 +104,7 @@ fun PagerItem(
model = AdsPlaceholderFile,
contentDescription = null,
modifier = modifier.fillMaxSize(),
contentScale = if (contentScale == ContentScale.Inside) ContentScale.Fit else contentScale,
) {
val placeholderState by painter.state.collectAsState()
if (placeholderState is AsyncImagePainter.State.Success) {