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
+2
View File
@@ -51,6 +51,8 @@ class DataGenerator {
static bool boolean() => _random.nextBool();
static String gender() => _random.nextBool() ? 'H' : 'F';
static String motivation() {
int count = _random.nextInt(3) + 2; // 2 à 4 phrases
List<String> chosenSnippets = [];