43 lines
889 B
Dart
43 lines
889 B
Dart
// ignore_for_file: prefer_const_constructors
|
|
|
|
import "package:flutter/material.dart";
|
|
|
|
class SplashScreen extends StatefulWidget {
|
|
const SplashScreen({super.key});
|
|
|
|
@override
|
|
State<SplashScreen> createState() => _SplashScreenState();
|
|
}
|
|
|
|
class _SplashScreenState extends State<SplashScreen> {
|
|
|
|
@override
|
|
void initState() {
|
|
super.initState();
|
|
_navigateToNextScreen();
|
|
}
|
|
|
|
Future<void> _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"),
|
|
),
|
|
),
|
|
);
|
|
}
|
|
}
|