Przeglądaj źródła

修复个人信息

tags/0.0.1
Weller 4 lat temu
rodzic
commit
90ca63244a
1 zmienionych plików z 4 dodań i 1 usunięć
  1. +4
    -1
      lib/models/user/user_info_model_notifier.dart

+ 4
- 1
lib/models/user/user_info_model_notifier.dart Wyświetl plik

@@ -16,7 +16,10 @@ class UserInfoNotifier with ChangeNotifier {
UserInfoModel get userInfo {
if (null == _userInfo) {
getUserInfoModel().then((user) {
if (user != null) notifyListeners();
if (user != null) {
_userInfo = user;
notifyListeners();
}
});
}
return _userInfo;


Ładowanie…
Anuluj
Zapisz