Commit 82a5a38a authored by 郑智刚's avatar 郑智刚

列表头像修改

parent 691403b8
import 'package:cached_network_image/cached_network_image.dart';
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:gmalpha_flutter/NewMessageModel/service/remote/entity/AttentionEntity.dart';
......@@ -29,12 +30,16 @@ class AttentionListItem extends StatelessWidget {
}
Widget listItemHead() {
return Container(
margin: EdgeInsets.only(right: ScreenUtil().setWidth(10.0)),
child: CircleAvatar(
radius: 21.0,
backgroundImage: NetworkImage(item.icon),
),
return ClipOval(
child: Container(
color: ALColors.ColorE4E4E4,
child: CachedNetworkImage(
width: 42.0,
height: 42.0,
imageUrl: item.icon,
fit: BoxFit.cover,
),
)
);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment