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:
parent
f09deb5efc
commit
36ef0f8d5c
@ -167,35 +167,6 @@ class _PersonalInfoFormScreenState extends State<PersonalInfoFormScreen> {
|
|||||||
textAlign: TextAlign.center,
|
textAlign: TextAlign.center,
|
||||||
),
|
),
|
||||||
const SizedBox(height: 30),
|
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(
|
Container(
|
||||||
width: screenSize.width * 0.6,
|
width: screenSize.width * 0.6,
|
||||||
padding: const EdgeInsets.symmetric(vertical: 50, horizontal: 50),
|
padding: const EdgeInsets.symmetric(vertical: 50, horizontal: 50),
|
||||||
@ -211,6 +182,30 @@ class _PersonalInfoFormScreenState extends State<PersonalInfoFormScreen> {
|
|||||||
child: Column(
|
child: Column(
|
||||||
mainAxisSize: MainAxisSize.min,
|
mainAxisSize: MainAxisSize.min,
|
||||||
children: [
|
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(
|
Row(
|
||||||
children: [
|
children: [
|
||||||
Expanded(
|
Expanded(
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user