We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 91ded6a commit 620e944Copy full SHA for 620e944
lib/page/MyPage.dart
@@ -83,10 +83,16 @@ class _MyPageState extends GSYListState<MyPage> {
83
84
_refreshNotify() {
85
UserDao.getNotifyDao(false, false, 0).then((res) {
86
+ Color newColor;
87
if (res != null && res.result && res.data.length > 0) {
- notifyColor = Color(GSYColors.actionBlue);
88
+ newColor = Color(GSYColors.actionBlue);
89
} else {
- notifyColor = Color(GSYColors.subLightTextColor);
90
+ newColor = Color(GSYColors.subLightTextColor);
91
+ }
92
+ if (isShow) {
93
+ setState(() {
94
+ notifyColor = newColor;
95
+ });
96
}
97
});
98
0 commit comments