From 6738c5ba78e191edfa71a217f043e53e1123f0d9 Mon Sep 17 00:00:00 2001 From: ZCM <772112648@qq.com> Date: Fri, 10 Apr 2020 09:53:27 +0800 Subject: [PATCH] 1 --- lib/home/ProfilePage.dart | 11 +++++++---- lib/utils/HttpUtil.dart | 2 +- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/lib/home/ProfilePage.dart b/lib/home/ProfilePage.dart index 33ea340..a8bf531 100644 --- a/lib/home/ProfilePage.dart +++ b/lib/home/ProfilePage.dart @@ -663,7 +663,7 @@ class _ProfilePageState extends State child: Row(mainAxisAlignment: MainAxisAlignment.center, children: [ iconCode != null ? Container( - margin: EdgeInsets.only(right: 2), + margin: EdgeInsets.only(right: str == null ? 0 : 2), child: Icon( iconCode, size: 16, @@ -725,7 +725,7 @@ class _ProfilePageState extends State _buildBorderButton( I18n.of(context).edit_information, 140, gotoEditPage), SizedBox(width: 12.5), - _buildBorderButton('', 53, gotoSystemEditPage, + _buildBorderButton('', 54, gotoSystemEditPage, iconCode: Icons.settings), ]; } else if (userInfo.sex == UserData().basicInfo.sex) { @@ -806,7 +806,9 @@ class _ProfilePageState extends State child: Text( nums > 99 ? "99+" : nums.toString(), style: TextStyle( - fontSize: 13, color: Constants.BlackTextColor), + fontSize: 15, + color: Constants.BlackTextColor, + fontWeight: FontWeight.bold), )), isShowDot ? Positioned( @@ -836,6 +838,7 @@ class _ProfilePageState extends State Widget _buildFans() { return Container( child: Row( + mainAxisAlignment: MainAxisAlignment.spaceEvenly, children: [ _buildFansButton( userInfo.fans, @@ -965,7 +968,7 @@ class _ProfilePageState extends State ); }, child: Container( - margin: EdgeInsets.only(left: 19, right: 19, bottom: 15), + margin: EdgeInsets.only(left: 19, right: 0, bottom: 15), decoration: BoxDecoration(shape: BoxShape.circle, boxShadow: [ BoxShadow( color: Color(0xFFD9D9D9), diff --git a/lib/utils/HttpUtil.dart b/lib/utils/HttpUtil.dart index 9aa5e34..df12aea 100644 --- a/lib/utils/HttpUtil.dart +++ b/lib/utils/HttpUtil.dart @@ -282,7 +282,7 @@ class HttpUtil { } Map resData = res.data; print('用户信息resData $resData'); - if (resData['code'] == 0 && resData != null) { + if (resData['code'] == 0 && resData['data'] != null) { var info = UserInfo.fromJson(resData['data']); info.isBlackened ? BlacklistMgr.addBlackListMe(info.userId)