refactor Picture.kt

This commit is contained in:
T8RIN
2025-05-09 23:06:49 +03:00
parent cae5ce1dc2
commit 0da3f690c7

View File

@ -169,29 +169,29 @@ fun Picture(
@Composable
private fun CoilPicture(
model: Any?,
modifier: Modifier = Modifier,
transformations: List<Transformation>? = null,
contentDescription: String? = null,
shape: Shape = RectangleShape,
contentScale: ContentScale = ContentScale.Crop,
loading: @Composable (SubcomposeAsyncImageScope.(AsyncImagePainter.State.Loading) -> Unit)? = null,
success: @Composable (SubcomposeAsyncImageScope.(AsyncImagePainter.State.Success) -> Unit)? = null,
error: @Composable (SubcomposeAsyncImageScope.(AsyncImagePainter.State.Error) -> Unit)? = null,
onLoading: ((AsyncImagePainter.State.Loading) -> Unit)? = null,
onSuccess: ((AsyncImagePainter.State.Success) -> Unit)? = null,
onError: ((AsyncImagePainter.State.Error) -> Unit)? = null,
onState: ((AsyncImagePainter.State) -> Unit)? = null,
alignment: Alignment = Alignment.Center,
alpha: Float = DefaultAlpha,
colorFilter: ColorFilter? = null,
filterQuality: FilterQuality = DrawScope.DefaultFilterQuality,
shimmerEnabled: Boolean = true,
crossfadeEnabled: Boolean = true,
allowHardware: Boolean = true,
showTransparencyChecker: Boolean = true,
isLoadingFromDifferentPlace: Boolean = false,
enableUltraHDRSupport: Boolean = false,
size: Int? = null,
modifier: Modifier,
transformations: List<Transformation>?,
contentDescription: String?,
shape: Shape,
contentScale: ContentScale,
loading: @Composable (SubcomposeAsyncImageScope.(AsyncImagePainter.State.Loading) -> Unit)?,
success: @Composable (SubcomposeAsyncImageScope.(AsyncImagePainter.State.Success) -> Unit)?,
error: @Composable (SubcomposeAsyncImageScope.(AsyncImagePainter.State.Error) -> Unit)?,
onLoading: ((AsyncImagePainter.State.Loading) -> Unit)?,
onSuccess: ((AsyncImagePainter.State.Success) -> Unit)?,
onError: ((AsyncImagePainter.State.Error) -> Unit)?,
onState: ((AsyncImagePainter.State) -> Unit)?,
alignment: Alignment,
alpha: Float,
colorFilter: ColorFilter?,
filterQuality: FilterQuality,
shimmerEnabled: Boolean,
crossfadeEnabled: Boolean,
allowHardware: Boolean,
showTransparencyChecker: Boolean,
isLoadingFromDifferentPlace: Boolean,
enableUltraHDRSupport: Boolean,
size: Int?,
contentPadding: PaddingValues = PaddingValues()
) {