import 'package:flutter/material.dart'; import 'package:go_router/go_router.dart'; class NannyRegisterConfirmationScreen extends StatelessWidget { const NannyRegisterConfirmationScreen({super.key}); @override Widget build(BuildContext context) { return Scaffold( appBar: AppBar( title: const Text('Inscription Soumise'), automaticallyImplyLeading: false, // Remove back button ), body: Center( child: Padding( padding: const EdgeInsets.all(20.0), child: Column( mainAxisAlignment: MainAxisAlignment.center, crossAxisAlignment: CrossAxisAlignment.center, children: [ const Icon(Icons.check_circle_outline, color: Colors.green, size: 80), const SizedBox(height: 20), const Text( 'Votre demande d\'inscription a été soumise avec succès !', style: TextStyle(fontSize: 20, fontWeight: FontWeight.bold), textAlign: TextAlign.center, ), const SizedBox(height: 15), const Text( 'Votre compte est en attente de validation par un gestionnaire. Vous recevrez une notification par e-mail une fois votre compte activé.', textAlign: TextAlign.center, ), const SizedBox(height: 30), ElevatedButton( onPressed: () { // Navigate back to the login screen context.go('/login'); }, child: const Text('Retour à la connexion'), ), ], ), ), ), ); } }