import 'package:flutter/material.dart'; import 'package:go_router/go_router.dart'; class SplashScreenGif extends StatefulWidget { const SplashScreenGif({super.key}); @override State createState() => _SplashScreenGifState(); } class _SplashScreenGifState extends State { @override void initState() { super.initState(); Future.delayed(const Duration(seconds: 4), () { if (mounted) context.go('/login'); }); } @override Widget build(BuildContext context) { return Scaffold( backgroundColor: Colors.white, body: Center( child: Image.asset( 'assets/vidio/splash.gif', fit: BoxFit.contain, width: double.infinity, height: double.infinity, ), ), ); } }