fix(widgets): Repositionner le toggle et checkbox dans la carte

- Toggle "Il y a un 2ème parent ?" maintenant DANS la carte (pas au-dessus)
- Checkbox "Même adresse que parent 1" reste dans la carte
- Taille du texte du toggle ajustée à 20px pour cohérence
- Espacement de 25px après le toggle

Position correcte conforme à l'ancien design.
This commit is contained in:
MARTIN Julien 2026-01-28 16:51:02 +01:00
parent f09deb5efc
commit 36ef0f8d5c

View File

@ -167,35 +167,6 @@ class _PersonalInfoFormScreenState extends State<PersonalInfoFormScreen> {
textAlign: TextAlign.center,
),
const SizedBox(height: 30),
// Toggle "Il y a un 2ème parent" (uniquement pour Parent 2)
if (widget.showSecondPersonToggle) ...[
Padding(
padding: EdgeInsets.symmetric(horizontal: screenSize.width * 0.2),
child: Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Text(
'Il y a un 2ème parent ?',
style: GoogleFonts.merienda(fontSize: 18, fontWeight: FontWeight.w600),
),
const SizedBox(width: 15),
Switch(
value: _hasSecondPerson,
onChanged: (value) {
setState(() {
_hasSecondPerson = value;
_fieldsEnabled = value;
});
},
activeColor: Theme.of(context).primaryColor,
),
],
),
),
const SizedBox(height: 20),
],
Container(
width: screenSize.width * 0.6,
padding: const EdgeInsets.symmetric(vertical: 50, horizontal: 50),
@ -211,6 +182,30 @@ class _PersonalInfoFormScreenState extends State<PersonalInfoFormScreen> {
child: Column(
mainAxisSize: MainAxisSize.min,
children: [
// Toggle "Il y a un 2ème parent" (uniquement pour Parent 2)
if (widget.showSecondPersonToggle) ...[
Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Text(
'Il y a un 2ème parent ?',
style: GoogleFonts.merienda(fontSize: 20, fontWeight: FontWeight.w600),
),
const SizedBox(width: 15),
Switch(
value: _hasSecondPerson,
onChanged: (value) {
setState(() {
_hasSecondPerson = value;
_fieldsEnabled = value;
});
},
activeColor: Theme.of(context).primaryColor,
),
],
),
const SizedBox(height: 25),
],
Row(
children: [
Expanded(