ZCM 5 лет назад
Родитель
Сommit
6738c5ba78
2 измененных файлов: 8 добавлений и 5 удалений
  1. +7
    -4
      lib/home/ProfilePage.dart
  2. +1
    -1
      lib/utils/HttpUtil.dart

+ 7
- 4
lib/home/ProfilePage.dart Просмотреть файл

@@ -663,7 +663,7 @@ class _ProfilePageState extends State<ProfilePage>
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<ProfilePage>
_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<ProfilePage>
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<ProfilePage>
Widget _buildFans() {
return Container(
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
children: <Widget>[
_buildFansButton(
userInfo.fans,
@@ -965,7 +968,7 @@ class _ProfilePageState extends State<ProfilePage>
);
},
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),


+ 1
- 1
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)


Загрузка…
Отмена
Сохранить