- Parcours AM : plus de jeu de test Marie DUBOIS ni photo factice - Parcours parent : plus de DataGenerator ; enfants vides à l’ajout - Suppression de data_generator.dart (inutilisé) 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');
|
|
},
|
|
);
|
|
}
|
|
}
|