diff --git a/frontend/lib/widgets/admin/parent_dossier_wizard.dart b/frontend/lib/widgets/admin/parent_dossier_wizard.dart index a70fc7f..262a8a1 100644 --- a/frontend/lib/widgets/admin/parent_dossier_wizard.dart +++ b/frontend/lib/widgets/admin/parent_dossier_wizard.dart @@ -763,68 +763,66 @@ class _ParentDossierWizardState extends State { Expanded( flex: 2, child: Padding( - padding: const EdgeInsets.fromLTRB(4, 4, 14, 12), - child: SingleChildScrollView( - child: Column( - crossAxisAlignment: CrossAxisAlignment.stretch, - children: [ - ValidationLabeledField( - label: 'Nom', - field: ValidationEditableField( - controller: child.nomCtrl, - inputFormatters: const [ - PersonNameInputFormatter(), - ], - ), + padding: const EdgeInsets.fromLTRB(4, 0, 14, 8), + child: Column( + crossAxisAlignment: CrossAxisAlignment.stretch, + children: [ + ValidationLabeledField( + label: 'Nom', + field: ValidationEditableField( + controller: child.nomCtrl, + inputFormatters: const [ + PersonNameInputFormatter(), + ], ), - const SizedBox(height: 12), - ValidationLabeledField( - label: child.isUnborn - ? 'Date prévisionnelle' - : 'Date de naissance', - labelTrailing: Row( - mainAxisSize: MainAxisSize.min, - children: [ - const Text( - 'À naître', - style: TextStyle( - fontSize: ValidationFormMetrics - .fieldLabelFontSize, - color: Colors.black87, - ), + ), + const SizedBox(height: 6), + ValidationLabeledField( + label: child.isUnborn + ? 'Date prévisionnelle' + : 'Date de naissance', + labelTrailing: Row( + mainAxisSize: MainAxisSize.min, + children: [ + const Text( + 'À naître', + style: TextStyle( + fontSize: ValidationFormMetrics + .fieldLabelFontSize, + color: Colors.black87, ), - Transform.scale( - scale: 0.75, - child: Switch( - materialTapTargetSize: - MaterialTapTargetSize.shrinkWrap, - value: child.isUnborn, - onChanged: (v) => setState(() { - child.isUnborn = v; - if (!v && child.genre == 'Autre') { - child.genre = null; - } - }), - ), + ), + Transform.scale( + scale: 0.75, + child: Switch( + materialTapTargetSize: + MaterialTapTargetSize.shrinkWrap, + value: child.isUnborn, + onChanged: (v) => setState(() { + child.isUnborn = v; + if (!v && child.genre == 'Autre') { + child.genre = null; + } + }), ), - ], - ), - field: ValidationEditableField( - controller: child.dateCtrl, - hintText: 'jj / mm / aaaa', - keyboardType: TextInputType.number, - inputFormatters: const [ - FrenchDateInputFormatter(), - ], - ), + ), + ], ), - const SizedBox(height: 12), - ValidationLabeledField( - label: 'Genre', - field: _genreDropdown(index), + field: ValidationEditableField( + controller: child.dateCtrl, + hintText: 'jj / mm / aaaa', + keyboardType: TextInputType.number, + inputFormatters: const [ + FrenchDateInputFormatter(), + ], ), - ], - ), + ), + const SizedBox(height: 6), + ValidationLabeledField( + label: 'Genre', + field: _genreDropdown(index), + ), + ], ), ), ),