fix: invert last and first name

This commit is contained in:
alzalia1 2025-08-14 13:54:30 +02:00
parent 1803a2b119
commit 11c66e7bf1

View file

@ -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",