animated_splash_screen 1.2.0 animated_splash_screen: ^1.2.0 copied to clipboard
The easiest way to create your animated splash screen in a fully customizable way.
import 'package:animated_splash_screen/animated_splash_screen.dart';
import 'package:flutter/material.dart';
import 'package:page_transition/page_transition.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Clean Code',
home: AnimatedSplashScreen(
duration: 3000,
splash: Icons.home,
nextScreen: MainScreen(),
splashTransition: SplashTransition.fadeTransition,
pageTransitionType: PageTransitionType.scale,
backgroundColor: Colors.blue));
}
}
class MainScreen extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Container(
color: Colors.redAccent,
);
}
}