// ignore_for_file: prefer_const_constructors import "package:flutter/material.dart"; class SplashScreen extends StatefulWidget { const SplashScreen({super.key}); @override State createState() => _SplashScreenState(); } class _SplashScreenState extends State { @override void initState() { super.initState(); _navigateToNextScreen(); } Future _navigateToNextScreen() async { await Future.delayed(const Duration(seconds: 2)); if (mounted) { Navigator.pushReplacementNamed(context, '/authcheck'); } } @override Widget build(BuildContext context) { return Scaffold( backgroundColor: Color(0xFFFFFFFF), body: Center( child: SizedBox( width: 250, height: 250, child: Image.asset("assets/logo_app/logo_app-h.png"), ), ), ); } }