mirrored_repositories/E-commere-Amazon-app/lib/widgets
import 'package:e_commerce/widgets/splash_screen/splash_controller.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> {

  SplashScreenController splashScreenController = SplashScreenController();
  @override
  void initState() {
    super.initState();
    splashScreenController.SplashTime(context);
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      resizeToAvoidBottomInset: false,
      backgroundColor: Colors.white,
      body: Column(
        mainAxisAlignment: MainAxisAlignment.center,
        crossAxisAlignment: CrossAxisAlignment.center,
        children: [
          Container(
            alignment: Alignment.center,
            child: Image.asset(
              'assets/images/amazon_logo.png',
              width: 140,
            ),
          ),
        ],
      ),
    );
  }
}
