mirrored_repositories/AutismX/lib/screens
import 'dart:async';

import 'package:autismx/screens/parent/sing_in/signin_view.dart';
import 'package:flutter/material.dart';

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

  @override
  State<SplashScreen> createState() => _SplashScreenState();
}

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

    super.initState();
  }
  @override
  
  Widget build(BuildContext context) {
  
    return Scaffold(
      backgroundColor: Colors.white,
      body: Center(
        child: Container(
          width: MediaQuery.of(context).size.width,
          height:  MediaQuery.of(context).size.height*0.7,
          child: Image.asset("assets/images/logo.gif")),
      ),
    );
  }
}
