로그인 전 계정조회

This commit is contained in:
chan committed 2026-01-27 17:16:36 +09:00
1 parent c914fad405
commit 1a0dc74cb5
3 files changed
+113 -87

No files matched your search

@@ -18,9 +18,11 @@ class ProfileNotifier extends AsyncNotifier<UserProfile?> {
return ref.read(profileRepositoryProvider).getMyProfile();
}
Future<void> loadProfile() async {
Future<UserProfile?> loadProfile() async {
state = const AsyncValue.loading();
state = await AsyncValue.guard(() => _fetch());
final profile = await _fetch();
state = AsyncValue.data(profile);
return profile;
}
Future<void> updateProfile({