edit profile ok
This commit is contained in:
parent
db3cb20255
commit
30b9be35ef
@ -120,11 +120,14 @@ class _EditProfileState extends State<EditProfile>
|
|||||||
'firstName': firstName,
|
'firstName': firstName,
|
||||||
'password': password,
|
'password': password,
|
||||||
'email': email,
|
'email': email,
|
||||||
'birth': birth
|
'roles': '',
|
||||||
|
'birth': birth.toString()
|
||||||
}));
|
}));
|
||||||
print(responsePut.statusCode);
|
print(responsePut.statusCode);
|
||||||
if (responsePut.statusCode == 200) {
|
if (responsePut.statusCode == 200) {
|
||||||
showEventDialog(context, "Votre utilisateur a été modifié");
|
showEventDialog(context, "Votre utilisateur a été modifié");
|
||||||
|
Navigator.pushReplacement(
|
||||||
|
context, MaterialPageRoute(builder: (_) => EditProfile()));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -323,7 +326,7 @@ class _EditProfileState extends State<EditProfile>
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
child: Text(
|
child: Text(
|
||||||
'Ajouter',
|
'Modifier le profil',
|
||||||
style: TextStyle(color: Colors.white, fontSize: 25),
|
style: TextStyle(color: Colors.white, fontSize: 25),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user