李志伟 3 년 전
부모
커밋
a9676bd803

BIN
images/HomesNOImgaes.png 파일 보기


BIN
images/HomesOFFImgaes.png 파일 보기


BIN
images/MineNOImgaes.png 파일 보기


BIN
images/MineOFFImgaes.png 파일 보기


BIN
images/OrdersNOImgaes.png 파일 보기


BIN
images/OrdersOFFImgaes.png 파일 보기


BIN
images/newsOFFImages.png 파일 보기


BIN
images/newsONImages.png 파일 보기


+ 83
- 5
lib/pages/addressList/index.dart 파일 보기

@@ -11,6 +11,7 @@ class AddressList extends StatefulWidget {
11 11
 }
12 12
 
13 13
 class _AddressList extends State<AddressList> {
14
+  bool isDetault = false;
14 15
   @override
15 16
   Widget build(BuildContext context) {
16 17
     return Scaffold(
@@ -30,16 +31,93 @@ class _AddressList extends State<AddressList> {
30 31
       body: Container(
31 32
         padding: EdgeInsets.all(15.w),
32 33
         child: Column(
34
+          //左对齐
35
+          crossAxisAlignment: CrossAxisAlignment.start,
33 36
           children: [
34
-            Text('地址'),
37
+            Container(
38
+              width: 345.w,
39
+              padding: EdgeInsets.all(15.w),
40
+              margin: EdgeInsets.symmetric(vertical: 10.h, horizontal: 0),
41
+              decoration: BoxDecoration(
42
+                color: const Color(0xFFFFFFFF),
43
+                borderRadius: BorderRadius.all(Radius.circular(10.w)),
44
+                boxShadow: [
45
+                  BoxShadow(
46
+                      color: const Color(0x19000000),
47
+                      offset: Offset(0, 5.w),
48
+                      blurRadius: 12.w),
49
+                ],
50
+              ),
51
+              child: Column(
52
+                crossAxisAlignment: CrossAxisAlignment.start,
53
+                children: [
54
+                  Row(
55
+                    children: [
56
+                      Container(
57
+                        margin: EdgeInsets.fromLTRB(0, 0, 5.w, 0),
58
+                        padding: EdgeInsets.symmetric(
59
+                            vertical: 1.w, horizontal: 5.w),
60
+                        decoration: BoxDecoration(
61
+                          color: const Color(0xffff0000),
62
+                          borderRadius: BorderRadius.all(Radius.circular(5.w)),
63
+                        ),
64
+                        child: Text(
65
+                          '默认地址',
66
+                          style: TextStyle(
67
+                            fontSize: 15.sp,
68
+                            color: const Color(0xffffffff),
69
+                          ),
70
+                        ),
71
+                      ),
72
+                      Text(
73
+                        '我的地址1',
74
+                        style: TextStyle(
75
+                            fontSize: 15.sp, fontWeight: FontWeight.w700),
76
+                      ),
77
+                    ],
78
+                  ),
79
+                  Container(
80
+                    decoration: BoxDecoration(
81
+                      border: Border(
82
+                        bottom: BorderSide(
83
+                            width: 0.5.h,
84
+                            color: const Color(0xcc000000),
85
+                            style: BorderStyle.solid),
86
+                      ),
87
+                    ),
88
+                    child: Row(
89
+                      mainAxisAlignment: MainAxisAlignment.spaceBetween,
90
+                      children: [
91
+                        Container(
92
+                          padding: EdgeInsets.symmetric(vertical: 5.w,horizontal: 0),
93
+                          width:310.w,
94
+                          child: Text(
95
+                            '666666',
96
+                            style: TextStyle(
97
+                              fontSize: 15.sp,
98
+                              color: const Color(0xff666666),
99
+                            ),
100
+                          ),
101
+                        ),
102
+                        Image.asset('')
103
+                      ],
104
+                    ),
105
+                  ),
106
+                  const Text('我的地址'),
107
+                  const Text('6666'),
108
+                  const Text('设为默认地址:')
109
+                ],
110
+              ),
111
+            ),
112
+            if (!isDetault) const Text('66'),
35 113
             DefaultButton(
36
-              color: Color(0xffffffff),
37
-              backColor: Color(0xFFFF703B),
114
+              color: const Color(0xffffffff),
115
+              backColor: const Color(0xFFFF703B),
38 116
               width: 345.w,
39 117
               height: 49.h,
40 118
               text: '+新增收货地址',
41
-              onPressed: (){},
42
-              margin: EdgeInsets.all(0),
119
+              onPressed: () {},
120
+              margin: const EdgeInsets.all(0),
43 121
               fontSize: 20.sp,
44 122
               radius: 24.5.w,
45 123
             ),

+ 2
- 2
lib/pages/splash/splash.dart 파일 보기

@@ -16,8 +16,8 @@ class _SplashScreen extends State<SplashScreen> {
16 16
   handleOnFinish() {
17 17
     print(99999);
18 18
 
19
-    Get.off(Home());
20
-    // Get.toNamed("/addressList");
19
+    // Get.off(Home());
20
+    Get.toNamed("/addressList");
21 21
   }
22 22
 
23 23
   @override