feat(profile): Подписки и подписчики, Аватарка (загрузить/удалить/посмотреть), Дополнительная информация (модалка), Поделиться профилем

This commit is contained in:
Alex
2024-12-02 17:12:13 +03:00
parent 6a98bcb492
commit 92a3a60636
13 changed files with 328 additions and 64 deletions

View File

@@ -10,10 +10,9 @@ class ProfileAvatarCubit extends Cubit<ProfileAvatarState> {
}) : super(const ProfileAvatarState.loading());
getMyProfile() async {
emit(const ProfileAvatarState.loading());
try {
emit(ProfileAvatarState.loaded(
profile: await profileRepository.getMyProfile(),
),);
emit(ProfileAvatarState.loaded(profile: await profileRepository.getMyProfile()));
} catch (e) {
emit(ProfileAvatarState.error(errorMessage: e.toString()));
}