import 'dart:async'; import 'package:flutter/material.dart'; import '../../auth/views/welcome_screen.dart'; class SplashScreen extends StatefulWidget { const SplashScreen({super.key}); @override State createState() => _SplashScreenState(); } class _SplashScreenState extends State { @override void initState() { super.initState(); Timer(const Duration(seconds: 3), () { Navigator.pushReplacement( context, MaterialPageRoute( builder: (_) => const WelcomeScreen(), ), ); }); } @override Widget build(BuildContext context) { return Scaffold( backgroundColor: const Color(0xFF0F172A), body: Center( child: Column( mainAxisAlignment: MainAxisAlignment.center, children: [ Image.asset( 'assets/images/logo.png', width: 140, ), const SizedBox(height: 24), const Text( 'Klimatologi', style: TextStyle( color: Colors.white, fontSize: 28, fontWeight: FontWeight.bold, ), ), const SizedBox(height: 12), const CircularProgressIndicator( color: Colors.white, ), ], ), ), ); } }