update user api to user service

This commit is contained in:
2025-07-02 12:23:08 +02:00
parent b863ff173a
commit 76fc833bcf
4 changed files with 3 additions and 15 deletions

View File

@@ -218,7 +218,6 @@ class _MIHProfileGetterState extends State<MIHProfileGetter> {
// );
}
// <a href="https://www.flaticon.com/free-icons/dont-know" title="dont know icons">Dont know icons created by Freepik - Flaticon</a>
@override
void dispose() {
// TODO: implement dispose

View File

@@ -71,7 +71,7 @@ class _MihPersonalProfileState extends State<MihPersonalProfile> {
// print("============\nsubmiit form\n=================");
if (widget.arguments.signedInUser.username != usernameController.text) {
bool isUsernameUnique =
await MihUserApis.isUsernameUnique(usernameController.text, context);
await MihUserServices.isUsernameUnique(usernameController.text, context);
print("isUsernameUnique: $isUsernameUnique");
if (isUsernameUnique == false) {
notUniqueAlert();
@@ -112,7 +112,7 @@ class _MihPersonalProfileState extends State<MihPersonalProfile> {
}
Future<void> updateUserApiCall() async {
int responseCode = await MihUserApis().updateUser(
int responseCode = await MihUserServices().updateUser(
widget.arguments.signedInUser,
fnameController.text,
lnameController.text,

View File

@@ -61,7 +61,7 @@ class _MihPersonalSettingsState extends State<MihPersonalSettings> {
children: [
MihButton(
onPressed: () {
MihUserApis.deleteAccount(
MihUserServices.deleteAccount(
widget.signedInUser.app_id, context);
},
buttonColor: