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

hmxc
小赖 4 years ago
parent 9f91a04934
commit b30e6ecfb5

@ -59,7 +59,15 @@ class _PersonalIndexState extends State<PersonalIndex>
child: Column( child: Column(
children: [ children: [
Spacer(), Spacer(),
Container( MaterialButton(
padding: EdgeInsets.all(5.w),
onPressed: () {
if (!userProvider.isLogin)
SignInPage().to();
else
UserProfilePage().to();
},
child: Container(
margin: EdgeInsets.only(left: 32.w), margin: EdgeInsets.only(left: 32.w),
child: Row( child: Row(
children: [ children: [
@ -69,21 +77,15 @@ class _PersonalIndexState extends State<PersonalIndex>
child: FadeInImage.assetNetwork( child: FadeInImage.assetNetwork(
placeholder: R.ASSETS_IMAGES_PLACEHOLDER_WEBP, placeholder: R.ASSETS_IMAGES_PLACEHOLDER_WEBP,
image: API.image( image: API.image(
userProvider?.userInfoModel?.imgUrl ?? ''), userProvider?.userInfoModel?.imgUrl ??
''),
height: 106.w, height: 106.w,
width: 106.w, width: 106.w,
fit: BoxFit.cover, fit: BoxFit.cover,
), ),
), ),
), ),
InkWell( Container(
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,10 +103,10 @@ class _PersonalIndexState extends State<PersonalIndex>
color: Color(0xffad8940), color: Color(0xffad8940),
), ),
)), )),
),
], ],
), ),
), ),
),
Stack( Stack(
children: [ children: [
Positioned( Positioned(

Loading…
Cancel
Save