Version propre - Dashboard enhanced
This commit is contained in:
@@ -88,19 +88,19 @@ class _SplashScreenState extends State<SplashScreen>
|
||||
),
|
||||
);
|
||||
|
||||
// Séquence d'animations
|
||||
// Séquence d'animations avec vérification mounted
|
||||
await Future.delayed(const Duration(milliseconds: 300));
|
||||
_logoController.forward();
|
||||
|
||||
if (mounted) _logoController.forward();
|
||||
|
||||
await Future.delayed(const Duration(milliseconds: 500));
|
||||
_textController.forward();
|
||||
|
||||
if (mounted) _textController.forward();
|
||||
|
||||
await Future.delayed(const Duration(milliseconds: 300));
|
||||
_progressController.forward();
|
||||
if (mounted) _progressController.forward();
|
||||
|
||||
// Attendre la fin de toutes les animations + temps de chargement
|
||||
await Future.delayed(const Duration(milliseconds: 2000));
|
||||
|
||||
|
||||
// Le splash screen sera remplacé automatiquement par l'AppWrapper
|
||||
// basé sur l'état d'authentification
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user