Skip to content

Commit

Permalink
fixes bug
Browse files Browse the repository at this point in the history
  • Loading branch information
conghaonet committed Dec 15, 2019
1 parent f0525aa commit 7399338
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Binary file added images/icon_app_1024.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 8 additions & 2 deletions lib/main.dart
Expand Up @@ -71,7 +71,6 @@ class _MyAppState extends State<MyApp> {
setState(() {
_isInitialed = true;
});
// Navigator.pushReplacementNamed(context, SplashPage.ROUTE_NAME);

}

Expand Down Expand Up @@ -103,7 +102,14 @@ class _MyAppState extends State<MyApp> {
title: 'githao',
onGenerateTitle: (context) => S.current.appTitle,
theme: themeProvide.themeData,
home: _isInitialed ? SplashPage() : Container(),
home: _isInitialed ? SplashPage() : Container(
color: Colors.white,
child: Center(
child: Image.asset('images/icon_app_1024.png',
fit: BoxFit.contain,
),
),
),
);
},
);
Expand Down

0 comments on commit 7399338

Please sign in to comment.