🎨 Fix some warnings in the code

This commit is contained in:
2025-06-10 23:29:32 +08:00
parent 044fb983d6
commit 78f258dcea
6 changed files with 12 additions and 23 deletions

View File

@ -86,7 +86,7 @@ class AccountSettingsScreen extends HookConsumerWidget {
).push(MaterialPageRoute(builder: (context) => CaptchaScreen()));
if (captchaTk == null) return;
try {
showLoadingModal(context);
if (context.mounted) showLoadingModal(context);
final userInfo = ref.read(userInfoProvider);
final client = ref.read(apiClientProvider);
await client.post(