fix(#129): resserrer les champs enfant pour éviter le scroll.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -763,68 +763,66 @@ class _ParentDossierWizardState extends State<ParentDossierWizard> {
|
||||
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),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user