李志伟 3 年前
父节点
当前提交
78457f7a5d
共有 3 个文件被更改,包括 14 次插入14 次删除
  1. 二进制
      images/splash.png
  2. 13
    13
      lib/pages/splash/splash.dart
  3. 1
    1
      lib/pages/splash/widgets/countdown.dart

二进制
images/splash.png 查看文件


+ 13
- 13
lib/pages/splash/splash.dart 查看文件

@@ -16,7 +16,7 @@ class SplashScreen extends StatefulWidget {
16 16
 
17 17
 class _SplashScreen extends State<SplashScreen> {
18 18
   handleOnFinish() {
19
-    // Get.off(const Home());
19
+    Get.off(const Home());
20 20
   }
21 21
 
22 22
   @override
@@ -36,20 +36,20 @@ class _SplashScreen extends State<SplashScreen> {
36 36
             top: 50.h,
37 37
             child: countdown(3, handleOnFinish),
38 38
           ),
39
-          Column(
40
-            children: [
41
-              Container(
42
-                child: Positioned(
43
-                  bottom: 0,
44
-                  child: Image.asset(
45
-                    'images/logo.png',
46
-                    width: 100,
47
-                    height: 100,
48
-                  ),
39
+          Positioned(
40
+            bottom: 0,
41
+            child: Container(
42
+              width: 375.w,
43
+              height: 60.w,
44
+              // color: Color(0xffffffff),
45
+              child: Center(
46
+                child: Image.asset(
47
+                  'images/logo.png',
48
+                  width: 218.w,
49
+                  height: 50.w,
49 50
                 ),
50 51
               ),
51
-              Container(),
52
-            ],
52
+            ),
53 53
           ),
54 54
         ],
55 55
       ),

+ 1
- 1
lib/pages/splash/widgets/countdown.dart 查看文件

@@ -38,7 +38,7 @@ Widget countdown(int sec, void Function() onFinish) {
38 38
               fontSize: 13.sp,
39 39
               letterSpacing: 2,
40 40
               color: const Color(0xFFFFFFFF),
41
-              decoration: TextDecoration.none),
41
+              ),
42 42
         ),
43 43
       ),
44 44
     ),