splash screen fix
This commit is contained in:
@@ -71,7 +71,7 @@ class MyApp extends StatefulWidget {
|
|||||||
}
|
}
|
||||||
|
|
||||||
class _MyAppState extends State<MyApp> {
|
class _MyAppState extends State<MyApp> {
|
||||||
bool _showSplash = false;
|
bool _showSplash = true;
|
||||||
|
|
||||||
void _onSplashComplete() {
|
void _onSplashComplete() {
|
||||||
setState(() {
|
setState(() {
|
||||||
|
|||||||
@@ -89,12 +89,11 @@ class _SplashScreenState extends State<SplashScreen>
|
|||||||
scale: _scaleAnimation,
|
scale: _scaleAnimation,
|
||||||
child: Center(
|
child: Center(
|
||||||
child: SizedBox(
|
child: SizedBox(
|
||||||
width: MediaQuery.of(context).size.width,
|
width: 200,
|
||||||
height: MediaQuery.of(context).size.height,
|
|
||||||
child: ClipRRect(
|
child: ClipRRect(
|
||||||
borderRadius: BorderRadius.circular(20),
|
borderRadius: BorderRadius.circular(20),
|
||||||
child: GifView.asset(
|
child: GifView.asset(
|
||||||
'assets/giphy.gif',
|
'assets/velocity-animation.gif',
|
||||||
width: MediaQuery.of(context).size.width,
|
width: MediaQuery.of(context).size.width,
|
||||||
height: MediaQuery.of(context).size.height,
|
height: MediaQuery.of(context).size.height,
|
||||||
frameRate: 30,
|
frameRate: 30,
|
||||||
|
|||||||
Reference in New Issue
Block a user