Skip to content

Commit

Permalink
🎨 style loading indicator for user avatar
Browse files Browse the repository at this point in the history
Apply proper size and circular shape to match the loaded avatar image style
  • Loading branch information
CXwudi committed Dec 22, 2024
1 parent 34a42c1 commit 453ce95
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,12 @@ private fun ProfileImage(
)
}
is AsyncImagePainter.State.Loading -> {
CircularProgressIndicator()
CircularProgressIndicator(
modifier = modifier
.then(sizeResolver)
.size(120.dp)
.clip(CircleShape)
)
}
is AsyncImagePainter.State.Success -> {
Image(
Expand Down

0 comments on commit 453ce95

Please sign in to comment.