fix:升级 Flutter 3.44.9级相关插件

This commit is contained in:
jingyun committed 2026-09-18 11:04:29 +08:00
1 parent d364c6d908
commit a1819348d5
26 files changed
+305 -318

No files matched your search

@@ -1,5 +1,6 @@
import 'package:dio/dio.dart';
import 'package:hooks_riverpod/hooks_riverpod.dart';
import 'package:hooks_riverpod/legacy.dart';
import '../../../common/network/api_exception.dart';
import '../../../common/network/dio_provider.dart';
@@ -75,7 +76,7 @@ class AuthController extends StateNotifier<AsyncValue<AuthState>> {
// Any non-session error (transport, 403, 429, 5xx, decode) preserves a
// stale cached session. With no profile there is nothing safe to render,
// but the credential still remains available for retry.
if (state.valueOrNull is LoggedInAuthState) return;
if (state.value is LoggedInAuthState) return;
state = AsyncError(exception, stackTrace);
}
}
@@ -141,7 +142,7 @@ class AuthController extends StateNotifier<AsyncValue<AuthState>> {
);
}
bool get isLoggedIn => state.valueOrNull is LoggedInAuthState;
bool get isLoggedIn => state.value is LoggedInAuthState;
@override
void dispose() {