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