Skip to content

Commit 620e944

Browse files
committed
fix 个人页面统治不清零问题
1 parent 91ded6a commit 620e944

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

lib/page/MyPage.dart

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,16 @@ class _MyPageState extends GSYListState<MyPage> {
8383

8484
_refreshNotify() {
8585
UserDao.getNotifyDao(false, false, 0).then((res) {
86+
Color newColor;
8687
if (res != null && res.result && res.data.length > 0) {
87-
notifyColor = Color(GSYColors.actionBlue);
88+
newColor = Color(GSYColors.actionBlue);
8889
} else {
89-
notifyColor = Color(GSYColors.subLightTextColor);
90+
newColor = Color(GSYColors.subLightTextColor);
91+
}
92+
if (isShow) {
93+
setState(() {
94+
notifyColor = newColor;
95+
});
9096
}
9197
});
9298
}

0 commit comments

Comments
 (0)