feat(setting): added account deleting

This commit is contained in:
Username1548
2025-07-16 19:30:30 +07:00
parent 74fa65a1ba
commit 773359e900
8 changed files with 174 additions and 5 deletions

View File

@@ -67,4 +67,13 @@ class SettingsCubit extends Cubit<SettingsState> {
await init();
}
}
Future<bool> deleteAccount() async {
try {
await profileRepository.deleteAccount();
return true;
} catch (e) {
return false;
}
}
}