mirrored_repositories/Illicit-Illustrations/flutter_files/lib
import 'dart:async';
import 'package:flutter/material.dart';
import 'package:illicit_illustrations_2/screens/home_screen.dart';

class SplashScreen extends StatefulWidget {
  const SplashScreen({Key? key}) : super(key: key);

  @override
  _SplashScreenState createState() => _SplashScreenState();
}

class _SplashScreenState extends State<SplashScreen> {
  @override
  void initState() {
    super.initState();
    Timer(const Duration(seconds: 2, ), () {
      Navigator.pushReplacement(
          context,
          MaterialPageRoute(
            builder: (context) => HomeScreen(),
          ));
    });
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Image.asset('assets/splash_screen_2.gif',width: double.infinity,height: double.infinity, fit: BoxFit.fill,),
    );
  }
}
