import 'package:flutter/material.dart'; import 'package:em2rp/utils/colors.dart'; class StartupSplashScreen extends StatelessWidget { final String message; const StartupSplashScreen({super.key, this.message = 'Démarrage...'}); @override Widget build(BuildContext context) { return Scaffold( backgroundColor: Colors.white, body: Center( child: Column( mainAxisAlignment: MainAxisAlignment.center, children: [ Image.asset( 'assets/logos/RectangleLogoBlack.png', width: 160, height: 160, fit: BoxFit.contain, errorBuilder: (context, error, stackTrace) { return const Icon( Icons.event_available, size: 72, color: AppColors.rouge, ); }, ), const SizedBox(height: 24), const CircularProgressIndicator( valueColor: AlwaysStoppedAnimation(AppColors.rouge), ), const SizedBox(height: 16), Text( message, style: const TextStyle( color: AppColors.noir, fontSize: 16, ), ), ], ), ), ); } }