avatar boxFit fix

hmxc
小赖 4 years ago
parent 322712a71e
commit a09fcec1b9

@ -129,6 +129,7 @@ class _PersonalIndexState extends State<PersonalIndex>
userProvider?.userInfoModel?.imgUrl ?? ''), userProvider?.userInfoModel?.imgUrl ?? ''),
height: 106.w, height: 106.w,
width: 106.w, width: 106.w,
fit: BoxFit.cover,
), ),
), ),
), ),

@ -101,6 +101,7 @@ class _UserProfilePageState extends State<UserProfilePage> {
image: API.image(userProvider.userInfoModel.imgUrl), image: API.image(userProvider.userInfoModel.imgUrl),
height: 56.w, height: 56.w,
width: 56.w, width: 56.w,
fit: BoxFit.cover,
), ),
), ),
), ),

@ -231,6 +231,8 @@ class _ChatCardState extends State<ChatCard> {
} }
_renderLikeAndComment() { _renderLikeAndComment() {
if (widget.model.likeNames.isEmpty &&
widget.model.gambitThemeCommentVoList.isEmpty) return SizedBox();
return Material( return Material(
borderRadius: BorderRadius.circular(8.w), borderRadius: BorderRadius.circular(8.w),
color: Color(0xFFF7F7F7), color: Color(0xFFF7F7F7),
@ -284,6 +286,7 @@ class _ChatCardState extends State<ChatCard> {
image: API.image(firstHead), image: API.image(firstHead),
height: 86.w, height: 86.w,
width: 86.w, width: 86.w,
fit: BoxFit.cover,
), ),
), ),
24.wb, 24.wb,

Loading…
Cancel
Save