diff --git a/covas_mobile/lib/pages/EditProfile.dart b/covas_mobile/lib/pages/EditProfile.dart index 79b09d3..2770ad2 100644 --- a/covas_mobile/lib/pages/EditProfile.dart +++ b/covas_mobile/lib/pages/EditProfile.dart @@ -162,7 +162,7 @@ class _EditProfileState extends State inputName.text = body["name"]; inputFirstName.text = body["firstName"]; inputUserName.text = body["username"]; - inputEmail = body["email"]; + inputEmail.text = body["email"]; inputBirth.text = DateFormat("dd/MM/yyyy").format(DateTime.parse(body["birth"])); }); @@ -248,7 +248,7 @@ class _EditProfileState extends State obscureText: true, decoration: InputDecoration( border: OutlineInputBorder(), - labelText: 'Mot de passe', + labelText: 'Confirmez le mot de passe', hintText: 'Confirmez le mot de passe'), ), ), @@ -283,7 +283,7 @@ class _EditProfileState extends State left: 15.0, right: 15.0, top: 15, bottom: 0), //padding: EdgeInsets.symmetric(horizontal: 15), child: TextFormField( - controller: inputName, + controller: inputEmail, validator: (value) => _validateField(value), decoration: InputDecoration( border: OutlineInputBorder(),