add delete account UI and logic

This commit is contained in:
Rafeek-Khoudare
2025-07-08 16:21:37 +03:00
parent 6c91af6f90
commit 2ff34a07a7
10 changed files with 216 additions and 52 deletions

View File

@ -195,6 +195,7 @@ abstract class ApiEndpoints {
static const String sendPicture = '/user/profile-picture/{userUuid}';
static const String getRegion = '/region';
static const String getTimezone = '/timezone';
static const String deleteProfile = '/user';
//multiple-time offline
static const String addMultipleTimeTemporaryPassword =

View File

@ -83,4 +83,11 @@ class AuthenticationAPI {
);
return response;
}
static Future<void> deleteAccount() async {
await HTTPService().delete(
path: ApiEndpoints.deleteProfile,
expectedResponseModel: (p0) {},
);
}
}