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(
|
Expanded(
|
||||||
flex: 2,
|
flex: 2,
|
||||||
child: Padding(
|
child: Padding(
|
||||||
padding: const EdgeInsets.fromLTRB(4, 4, 14, 12),
|
padding: const EdgeInsets.fromLTRB(4, 0, 14, 8),
|
||||||
child: SingleChildScrollView(
|
child: Column(
|
||||||
child: Column(
|
crossAxisAlignment: CrossAxisAlignment.stretch,
|
||||||
crossAxisAlignment: CrossAxisAlignment.stretch,
|
children: [
|
||||||
children: [
|
ValidationLabeledField(
|
||||||
ValidationLabeledField(
|
label: 'Nom',
|
||||||
label: 'Nom',
|
field: ValidationEditableField(
|
||||||
field: ValidationEditableField(
|
controller: child.nomCtrl,
|
||||||
controller: child.nomCtrl,
|
inputFormatters: const [
|
||||||
inputFormatters: const [
|
PersonNameInputFormatter(),
|
||||||
PersonNameInputFormatter(),
|
],
|
||||||
],
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
const SizedBox(height: 12),
|
),
|
||||||
ValidationLabeledField(
|
const SizedBox(height: 6),
|
||||||
label: child.isUnborn
|
ValidationLabeledField(
|
||||||
? 'Date prévisionnelle'
|
label: child.isUnborn
|
||||||
: 'Date de naissance',
|
? 'Date prévisionnelle'
|
||||||
labelTrailing: Row(
|
: 'Date de naissance',
|
||||||
mainAxisSize: MainAxisSize.min,
|
labelTrailing: Row(
|
||||||
children: [
|
mainAxisSize: MainAxisSize.min,
|
||||||
const Text(
|
children: [
|
||||||
'À naître',
|
const Text(
|
||||||
style: TextStyle(
|
'À naître',
|
||||||
fontSize: ValidationFormMetrics
|
style: TextStyle(
|
||||||
.fieldLabelFontSize,
|
fontSize: ValidationFormMetrics
|
||||||
color: Colors.black87,
|
.fieldLabelFontSize,
|
||||||
),
|
color: Colors.black87,
|
||||||
),
|
),
|
||||||
Transform.scale(
|
),
|
||||||
scale: 0.75,
|
Transform.scale(
|
||||||
child: Switch(
|
scale: 0.75,
|
||||||
materialTapTargetSize:
|
child: Switch(
|
||||||
MaterialTapTargetSize.shrinkWrap,
|
materialTapTargetSize:
|
||||||
value: child.isUnborn,
|
MaterialTapTargetSize.shrinkWrap,
|
||||||
onChanged: (v) => setState(() {
|
value: child.isUnborn,
|
||||||
child.isUnborn = v;
|
onChanged: (v) => setState(() {
|
||||||
if (!v && child.genre == 'Autre') {
|
child.isUnborn = v;
|
||||||
child.genre = null;
|
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),
|
field: ValidationEditableField(
|
||||||
ValidationLabeledField(
|
controller: child.dateCtrl,
|
||||||
label: 'Genre',
|
hintText: 'jj / mm / aaaa',
|
||||||
field: _genreDropdown(index),
|
keyboardType: TextInputType.number,
|
||||||
|
inputFormatters: const [
|
||||||
|
FrenchDateInputFormatter(),
|
||||||
|
],
|
||||||
),
|
),
|
||||||
],
|
),
|
||||||
),
|
const SizedBox(height: 6),
|
||||||
|
ValidationLabeledField(
|
||||||
|
label: 'Genre',
|
||||||
|
field: _genreDropdown(index),
|
||||||
|
),
|
||||||
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user