UI调整,群聊开发
This commit is contained in:
@@ -59,15 +59,20 @@ fun AgentCard(
|
||||
Row(
|
||||
modifier = Modifier
|
||||
) {
|
||||
CustomAsyncImage(
|
||||
context,
|
||||
agentEntity.avatar,
|
||||
contentDescription = "",
|
||||
// 使用remember基于agentEntity.id来缓存图片,避免滑动时重复加载
|
||||
Box(
|
||||
modifier = Modifier
|
||||
.size(40.dp)
|
||||
.clip(RoundedCornerShape(40.dp)),
|
||||
contentScale = ContentScale.Crop
|
||||
)
|
||||
.clip(RoundedCornerShape(40.dp))
|
||||
) {
|
||||
CustomAsyncImage(
|
||||
LocalContext.current,
|
||||
agentEntity.avatar,
|
||||
contentDescription = "",
|
||||
modifier = Modifier.size(40.dp),
|
||||
contentScale = ContentScale.Crop
|
||||
)
|
||||
}
|
||||
Column(
|
||||
modifier = Modifier
|
||||
.weight(1f)
|
||||
|
||||
Reference in New Issue
Block a user