Skip to content

Commit

Permalink
code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
CHARLES BOND authored and CHARLES BOND committed Jun 26, 2024
1 parent 503aa5d commit 9ebddc6
Showing 1 changed file with 1 addition and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -146,9 +146,8 @@ fun TimetableList(
)
timetableItem.speakers.forEach { speaker ->
Row {
// TODO: This style of image loading was included by default but it seems slow
// TODO: Fixed image loading again but its still slow. Maybe we need smaller images?
val painter = rememberAsyncImagePainter(speaker.iconUrl)
// val painter = rememberImagePainter(speaker.iconUrl)
Image(
painter = painter,
modifier = Modifier
Expand All @@ -157,20 +156,6 @@ fun TimetableList(
.clip(CircleShape),
contentDescription = "image",
)
// val imageModel = ImageRequest.Builder(LocalPlatformContext.current)
// .data(data = speaker.iconUrl)
// .build()
// AsyncImage(
// model = imageModel,
// modifier = Modifier
// .width(32.dp)
// .height(32.dp)
// .clip(CircleShape),
// contentDescription = "speaker image",
// onSuccess = { it ->
// val drawable = it.result.image
// }
// )
Text(
text = speaker.name,
fontSize = 24.sp,
Expand Down

0 comments on commit 9ebddc6

Please sign in to comment.