Asad Mukhtar
GlideImage( model = media.mediaPath, contentDescription = stringResource(id = R.string.thumbnail), modifier = Modifier .fillMaxWidth() .aspectRatio(1f), contentScale = ContentScale.Crop, ) AsyncImage( model = { media.mediaPath }, contentDescription = stringResource(id = R.string.thumbnail), placeholder = painterResource(id = R.drawable.ic_default_thumbnail), error = painterResource(id = R.drawable.ic_default_thumbnail), modifier = Modifier .fillMaxWidth() .aspectRatio(1f), contentScale = ContentScale.Crop )
romainguy
fengdai
model = { media.mediaPath }
model = media.mediaPath
A modern programming language that makes developers happier.