coil-kt/coil
Auf GitHub ansehenrememberAsyncImagePainter renders nothing when using dragAndDropSource
Open
#2.150 geöffnet am 29. Feb. 2024
help wanted
Repository-Metriken
- Stars
- (11.779 Stars)
- PR-Merge-Metriken
- (Durchschn. Merge 20h 14m) (28 gemergte PRs in 30 T)
Beschreibung
Describe the bug
The image is simply rendering nothing. There is nothing in the logs. When I remove the dragAndDropSource it works fine.
To Reproduce
Box(
modifier = Modifier
.aspectRatio(1f)
.dragAndDropSource {
detectTapGestures (
onLongPress = {
startTransfer(
DragAndDropTransferData(
clipData = ClipData.newPlainText("text/","${photo.id}"),
flags = View.DRAG_FLAG_GLOBAL,
)
)
}
)
}
) {
Image(
painter = rememberAsyncImagePainter(photo.url),
contentDescription = photo.description,
contentScale = ContentScale.Crop,
modifier = Modifier.fillMaxSize()
)
Text(text = "${photo.id}")
}
Logs/Screenshots
Version I am using a google pixel 6, android 14. coil-compose = "2.6.0" activity-compose = "1.7.0"