class SplashScreen extends StatefulWidget {
@override
Splash createState() => Splash();
}
class Splash extends State<SplashScreen> {
@override
void initState() {
super.initState();
}
@override
Widget build(BuildContext context) {
Timer(
Duration(seconds: 3),
() =>
Navigator.of(context).pushReplacement(MaterialPageRoute(
builder: (BuildContext context) => LandingScreen())));
var assetsImage = new AssetImage(
'images/new_logo.png');
var image = new Image(
image: assetsImage,
height:300);
return MaterialApp(
home: Scaffold(
body: Container(
decoration: new BoxDecoration(color: Colors.white),
child: new Center(
child: image,
),
),
),
);
}
}