From b30e6ecfb5b26040ccc42d966f08f01c03c0222f Mon Sep 17 00:00:00 2001 From: laiiihz Date: Mon, 8 Feb 2021 17:17:00 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=A8=E6=88=B7=E9=A1=B5=E9=9D=A2=E7=82=B9?= =?UTF-8?q?=E5=87=BB=E5=A4=B4=E5=83=8F=E5=92=8C=E6=98=B5=E7=A7=B0=E7=82=B9?= =?UTF-8?q?=E5=87=BB=E5=8C=BA=E5=9F=9F=E6=89=A9=E5=A4=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/pages/personal/personal_page.dart | 52 ++++++++++++++------------- 1 file changed, 27 insertions(+), 25 deletions(-) diff --git a/lib/pages/personal/personal_page.dart b/lib/pages/personal/personal_page.dart index e28c5a7d..43a15fd8 100644 --- a/lib/pages/personal/personal_page.dart +++ b/lib/pages/personal/personal_page.dart @@ -59,31 +59,33 @@ class _PersonalIndexState extends State child: Column( children: [ Spacer(), - Container( - margin: EdgeInsets.only(left: 32.w), - child: Row( - children: [ - Hero( - 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, + MaterialButton( + padding: EdgeInsets.all(5.w), + onPressed: () { + if (!userProvider.isLogin) + SignInPage().to(); + else + UserProfilePage().to(); + }, + child: Container( + margin: EdgeInsets.only(left: 32.w), + child: Row( + children: [ + Hero( + 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, + ), ), ), - ), - InkWell( - onTap: () { - if (!userProvider.isLogin) - SignInPage().to(); - else - UserProfilePage().to(); - }, - child: Container( + Container( margin: EdgeInsets.only(left: 16.w), child: userProvider.isLogin ? Text( @@ -101,8 +103,8 @@ class _PersonalIndexState extends State color: Color(0xffad8940), ), )), - ), - ], + ], + ), ), ), Stack(