edit profile ok

This commit is contained in:
Valentin CZERYBA 2025-01-06 23:40:17 +01:00
parent db3cb20255
commit 30b9be35ef

View File

@ -120,11 +120,14 @@ class _EditProfileState extends State<EditProfile>
'firstName': firstName,
'password': password,
'email': email,
'birth': birth
'roles': '',
'birth': birth.toString()
}));
print(responsePut.statusCode);
if (responsePut.statusCode == 200) {
showEventDialog(context, "Votre utilisateur a été modifié");
Navigator.pushReplacement(
context, MaterialPageRoute(builder: (_) => EditProfile()));
return;
}
@ -323,7 +326,7 @@ class _EditProfileState extends State<EditProfile>
}
},
child: Text(
'Ajouter',
'Modifier le profil',
style: TextStyle(color: Colors.white, fontSize: 25),
),
),