From 11c66e7bf1e5a507215905f16c28dc5e66405058 Mon Sep 17 00:00:00 2001 From: alzalia1 Date: Thu, 14 Aug 2025 13:54:30 +0200 Subject: [PATCH] fix: invert last and first name --- lib/ui/add_page/widgets/owner_popup.dart | 38 ++++++++++++------------ 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/lib/ui/add_page/widgets/owner_popup.dart b/lib/ui/add_page/widgets/owner_popup.dart index c677b13..35fe4b3 100644 --- a/lib/ui/add_page/widgets/owner_popup.dart +++ b/lib/ui/add_page/widgets/owner_popup.dart @@ -80,25 +80,6 @@ class _OwnerPopupState extends State { key: _formKey, child: Column( 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( decoration: InputDecoration( labelText: "Prénom", @@ -118,6 +99,25 @@ class _OwnerPopupState extends State { keyboardType: TextInputType.name, ), 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( decoration: InputDecoration( labelText: "Contact",