easy_splash_screen 1.0.4 easy_splash_screen: ^1.0.4 copied to clipboard
Easy Splash Screen plugin for your flutter app. You can easily implement this plugin to show splash screen and save time.
import 'package:example/home.dart';
import 'package:example/splash/splash.dart';
import 'package:flutter/material.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
// This widget is the root of your application.
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter Demo',
theme: ThemeData(
primarySwatch: Colors.blue,
),
// home: SplashPage(),
initialRoute: '/',
routes: {
'/': (context) => SplashPage(),
// '/': (context) => SplashFuturePage(),
'/home': (context) => HomePage(),
},
);
}
}