edit profile ok
This commit is contained in:
parent
db3cb20255
commit
30b9be35ef
@ -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),
|
||||
),
|
||||
),
|
||||
|
Loading…
x
Reference in New Issue
Block a user