Created
August 2, 2020 17:09
-
-
Save JaiAravindh/50376c744f554a452d3a1ad9a0e4885a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:animated_text_kit/animated_text_kit.dart'; | |
import 'package:flutter/material.dart'; | |
import 'package:flutter/rendering.dart'; | |
import 'package:splashscreen/splashscreen.dart'; | |
void main(){ | |
runApp(new MaterialApp( | |
debugShowCheckedModeBanner: false, | |
home: new MyApp(), | |
)); | |
} | |
class MyApp extends StatefulWidget { | |
@override | |
_MyAppState createState() => _MyAppState(); | |
} | |
class _MyAppState extends State<MyApp> { | |
@override | |
Widget build(BuildContext context) { | |
return SplashScreen( | |
seconds: 6, | |
backgroundColor: Color.fromARGB(255, 226, 83, 69), | |
image: Image.asset('assets/giphy.gif'), | |
loaderColor: Colors.white, | |
photoSize: 150.0, | |
navigateAfterSeconds: MainScreen(), | |
); | |
} | |
} | |
class MainScreen extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return Scaffold( | |
backgroundColor: Colors.black, | |
appBar: AppBar(title: Text("When Time Comes"), | |
backgroundColor: Colors.black,), | |
body: Center( | |
child: TyperAnimatedTextKit(text: ["Evogma ...", "Embark"], | |
textStyle: TextStyle(fontSize : 42.0, fontWeight: FontWeight.bold, color: Colors.white),textAlign: TextAlign.center), | |
), | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment