feat(frontend): Ajout champ genre obligatoire + Clean Code Step3

- Ajout champ gender (H/F) dans ChildData avec sélecteur radio
- Correction indicateur étape: 3/5 → 3/6
- Suppression commentaires inutiles et code obsolète
- Suppression print() pour gestion silencieuse des erreurs
- Ajout méthode gender() dans DataGenerator

Ticket #38
This commit is contained in:
2025-12-02 14:43:10 +01:00
parent 1bbdab03d0
commit aee061f9bd
3 changed files with 59 additions and 32 deletions
@@ -28,22 +28,24 @@ class ParentData {
class ChildData {
String firstName;
String lastName;
String dob; // Date de naissance ou prévisionnelle
String dob;
String gender;
bool photoConsent;
bool multipleBirth;
bool isUnbornChild;
File? imageFile;
CardColorVertical cardColor; // Nouveau champ pour la couleur de la carte
CardColorVertical cardColor;
ChildData({
this.firstName = '',
this.lastName = '',
this.dob = '',
this.gender = 'F',
this.photoConsent = false,
this.multipleBirth = false,
this.isUnbornChild = false,
this.imageFile,
required this.cardColor, // Rendre requis dans le constructeur
required this.cardColor,
});
}