update user profile avatar's placeholder

hmxc
小赖 4 years ago
parent e5ec96302b
commit 900f366b2a

@ -124,8 +124,7 @@ class _PersonalIndexState extends State<PersonalIndex>
tag: 'AVATAR', tag: 'AVATAR',
child: ClipOval( child: ClipOval(
child: FadeInImage.assetNetwork( child: FadeInImage.assetNetwork(
//TODO PLACEHOLDER placeholder: R.ASSETS_IMAGES_PLACEHOLDER_WEBP,
placeholder: R.ASSETS_ICONS_PROPOSAL_PNG,
image: API.image( image: API.image(
userProvider?.userInfoModel?.imgUrl ?? ''), userProvider?.userInfoModel?.imgUrl ?? ''),
height: 106.w, height: 106.w,

@ -98,7 +98,7 @@ class _UserProfilePageState extends State<UserProfilePage> {
tag: 'AVATAR', tag: 'AVATAR',
child: ClipOval( child: ClipOval(
child: FadeInImage.assetNetwork( child: FadeInImage.assetNetwork(
placeholder: R.ASSETS_ICONS_PROPOSAL_PNG, placeholder: R.ASSETS_IMAGES_PLACEHOLDER_WEBP,
image: API.image(userProvider.userInfoModel.imgUrl), image: API.image(userProvider.userInfoModel.imgUrl),
height: 56.w, height: 56.w,
width: 56.w, width: 56.w,

Loading…
Cancel
Save