forked from eatvio/eatvio_app
feat(profile): delete photo
This commit is contained in:
@@ -92,4 +92,9 @@ class ProfileCubit extends Cubit<ProfileState> {
|
||||
await profileRepository.uploadPhoto(await ImageCompressUtility.compressFile(file));
|
||||
return await getMyProfile();
|
||||
}
|
||||
|
||||
deletePhoto() async {
|
||||
await profileRepository.deletePhoto();
|
||||
return await getMyProfile();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user