Squash merge de develop vers master. Livrables principaux (ticket #101 et mise au point associée) : - Branchement du formulaire d'inscription parent sur POST /api/v1/auth/register/parent - Payload DTO (parents, enfants, photos base64, CGU) et services Auth - Parcours gestionnaire : cartes dossiers, wizard validation famille, images authentifiées - Scripts d'inscription test (Martin, Durand/Rousseau, Lecomte) ; .gitignore .cursor/ Inclut également les ajustements develop fusionnés dans ce lot (inscription AM, champs relais, etc.). Closes #101 Made-with: Cursor
33 lines
1.2 KiB
Dart
33 lines
1.2 KiB
Dart
import 'package:flutter/material.dart';
|
|
import 'package:provider/provider.dart';
|
|
import 'package:go_router/go_router.dart';
|
|
|
|
import '../../models/user_registration_data.dart';
|
|
import '../../widgets/presentation_form_screen.dart';
|
|
import '../../models/card_assets.dart';
|
|
|
|
class ParentRegisterStep4Screen extends StatelessWidget {
|
|
const ParentRegisterStep4Screen({super.key});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
final registrationData = Provider.of<UserRegistrationData>(context, listen: false);
|
|
|
|
return PresentationFormScreen(
|
|
stepText: 'Étape 4/5',
|
|
title: 'Motivation de votre demande',
|
|
cardColor: CardColorHorizontal.green,
|
|
textFieldHint: 'Écrivez ici pour motiver votre demande...',
|
|
initialText: registrationData.motivationText,
|
|
initialCguAccepted: registrationData.cguAccepted,
|
|
previousRoute: '/parent-register-step3',
|
|
onSubmit: (text, cguAccepted) {
|
|
registrationData.updateMotivation(text);
|
|
registrationData.acceptCGU(cguAccepted);
|
|
// Les infos financières peuvent être gérées ailleurs si nécessaire
|
|
context.go('/parent-register-step5');
|
|
},
|
|
);
|
|
}
|
|
}
|