fix: invert last and first name
This commit is contained in:
parent
1803a2b119
commit
11c66e7bf1
1 changed files with 19 additions and 19 deletions
|
|
@ -80,25 +80,6 @@ class _OwnerPopupState extends State<OwnerPopup> {
|
||||||
key: _formKey,
|
key: _formKey,
|
||||||
child: Column(
|
child: Column(
|
||||||
children: [
|
children: [
|
||||||
TextFormField(
|
|
||||||
decoration: InputDecoration(
|
|
||||||
labelText: "Nom",
|
|
||||||
border: OutlineInputBorder(),
|
|
||||||
),
|
|
||||||
onSaved: (newValue) {
|
|
||||||
setState(() {
|
|
||||||
lastName = newValue?.trim();
|
|
||||||
});
|
|
||||||
},
|
|
||||||
validator: (value) {
|
|
||||||
if (value == null || value.isEmpty) {
|
|
||||||
return "Indiquez un nom";
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
},
|
|
||||||
keyboardType: TextInputType.name,
|
|
||||||
),
|
|
||||||
SizedBox(height: 10),
|
|
||||||
TextFormField(
|
TextFormField(
|
||||||
decoration: InputDecoration(
|
decoration: InputDecoration(
|
||||||
labelText: "Prénom",
|
labelText: "Prénom",
|
||||||
|
|
@ -118,6 +99,25 @@ class _OwnerPopupState extends State<OwnerPopup> {
|
||||||
keyboardType: TextInputType.name,
|
keyboardType: TextInputType.name,
|
||||||
),
|
),
|
||||||
SizedBox(height: 10),
|
SizedBox(height: 10),
|
||||||
|
TextFormField(
|
||||||
|
decoration: InputDecoration(
|
||||||
|
labelText: "Nom",
|
||||||
|
border: OutlineInputBorder(),
|
||||||
|
),
|
||||||
|
onSaved: (newValue) {
|
||||||
|
setState(() {
|
||||||
|
lastName = newValue?.trim();
|
||||||
|
});
|
||||||
|
},
|
||||||
|
validator: (value) {
|
||||||
|
if (value == null || value.isEmpty) {
|
||||||
|
return "Indiquez un nom";
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
},
|
||||||
|
keyboardType: TextInputType.name,
|
||||||
|
),
|
||||||
|
SizedBox(height: 10),
|
||||||
TextFormField(
|
TextFormField(
|
||||||
decoration: InputDecoration(
|
decoration: InputDecoration(
|
||||||
labelText: "Contact",
|
labelText: "Contact",
|
||||||
|
|
|
||||||
Reference in a new issue