|
|
@@ -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; |
|
|
|