fix: after login

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2024-12-24 13:39:56 +08:00
parent c23f15b195
commit 36ee59c7da
5 changed files with 13 additions and 13 deletions

View File

@@ -59,7 +59,7 @@ class _DynamicsPageState extends State<DynamicsPage>
}),
),
onPressed: () {
if (GStorage.userInfo.get('userInfoCache') != null) {
if (GStorage.isLogin) {
showModalBottomSheet(
context: context,
useSafeArea: true,

View File

@@ -97,9 +97,9 @@ class _UpPanelState extends State<UpPanel> {
upItemBuild(UpItem(face: '', uname: '全部动态', mid: -1), 0),
upItemBuild(
UpItem(
face: userInfo.face,
face: userInfo?.face,
uname: '',
mid: userInfo.mid,
mid: userInfo?.mid,
),
1),
for (int i = 0; i < upList.length; i++) ...[

View File

@@ -59,7 +59,7 @@ class HomeController extends GetxController with GetTickerProviderStateMixin {
}
// 更新登录状态
void updateLoginStatus(val) async {
Future updateLoginStatus(val) async {
userInfo = await userInfoCache.get('userInfoCache');
userLogin.value = val ?? false;
if (val) return;