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:
@@ -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,
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user