Skip to content

Commit 4174b51

Browse files
committed
修改闪屏页的背景色
1 parent 6435887 commit 4174b51

File tree

7 files changed

+61
-57
lines changed

7 files changed

+61
-57
lines changed
433 KB
Loading
186 KB
Loading
189 KB
Loading
192 KB
Loading

ios/Podfile.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ DEPENDENCIES:
2424
- webview_flutter (from `.symlinks/plugins/webview_flutter/ios`)
2525

2626
SPEC REPOS:
27-
https://github.com/cocoapods/specs.git:
27+
https://github.com/CocoaPods/Specs.git:
2828
- FMDB
2929

3030
EXTERNAL SOURCES:
@@ -52,4 +52,4 @@ SPEC CHECKSUMS:
5252

5353
PODFILE CHECKSUM: 545ae53bd1d0bdac26cae6ddb8a02d47a0916981
5454

55-
COCOAPODS: 1.7.3
55+
COCOAPODS: 1.8.4

lib/views/splash/splash_page.dart

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ class _SplashPageState extends State<SplashPage> {
111111
Future.delayed(
112112
new Duration(milliseconds: 500),
113113
() {
114-
// 跳转
114+
// 跳转对应的主页
115115
NavigatorUtils.push(context, skipPath,
116116
clearStack: true, transition: TransitionType.fadeIn);
117117
},
@@ -141,13 +141,17 @@ class _SplashPageState extends State<SplashPage> {
141141
);
142142
}
143143

144-
/// 默认情况是一个启动页
144+
/// 默认情况是一个启动页 1200x530
145+
/// https://game.gtimg.cn/images/yxzj/img201606/heroimg/121/121-bigskin-4.jpg
145146
Widget _buildDefaultLaunchImage() {
146147
return Container(
147148
width: double.maxFinite,
148149
height: double.maxFinite,
149150
decoration: BoxDecoration(
151+
// 这里设置颜色 跟启动页一致的背景色,以免发生白屏闪烁
152+
color: Color.fromRGBO(0, 10, 24, 1),
150153
image: DecorationImage(
154+
// 启动页 别搞太大 以免加载慢
151155
image: AssetImage(Constant.assetsImages + 'LaunchImage.png'),
152156
fit: BoxFit.cover,
153157
),

0 commit comments

Comments
 (0)