用户页面点击头像和昵称点击区域扩大

hmxc
小赖 4 years ago
parent 9f91a04934
commit b30e6ecfb5

@ -59,31 +59,33 @@ class _PersonalIndexState extends State<PersonalIndex>
child: Column( child: Column(
children: [ children: [
Spacer(), Spacer(),
Container( MaterialButton(
margin: EdgeInsets.only(left: 32.w), padding: EdgeInsets.all(5.w),
child: Row( onPressed: () {
children: [ if (!userProvider.isLogin)
Hero( SignInPage().to();
tag: 'AVATAR', else
child: ClipOval( UserProfilePage().to();
child: FadeInImage.assetNetwork( },
placeholder: R.ASSETS_IMAGES_PLACEHOLDER_WEBP, child: Container(
image: API.image( margin: EdgeInsets.only(left: 32.w),
userProvider?.userInfoModel?.imgUrl ?? ''), child: Row(
height: 106.w, children: [
width: 106.w, Hero(
fit: BoxFit.cover, tag: 'AVATAR',
child: ClipOval(
child: FadeInImage.assetNetwork(
placeholder: R.ASSETS_IMAGES_PLACEHOLDER_WEBP,
image: API.image(
userProvider?.userInfoModel?.imgUrl ??
''),
height: 106.w,
width: 106.w,
fit: BoxFit.cover,
),
), ),
), ),
), Container(
InkWell(
onTap: () {
if (!userProvider.isLogin)
SignInPage().to();
else
UserProfilePage().to();
},
child: Container(
margin: EdgeInsets.only(left: 16.w), margin: EdgeInsets.only(left: 16.w),
child: userProvider.isLogin child: userProvider.isLogin
? Text( ? Text(
@ -101,8 +103,8 @@ class _PersonalIndexState extends State<PersonalIndex>
color: Color(0xffad8940), color: Color(0xffad8940),
), ),
)), )),
), ],
], ),
), ),
), ),
Stack( Stack(

Loading…
Cancel
Save