李志伟 3 years ago
parent
commit
a9676bd803

BIN
images/HomesNOImgaes.png View File


BIN
images/HomesOFFImgaes.png View File


BIN
images/MineNOImgaes.png View File


BIN
images/MineOFFImgaes.png View File


BIN
images/OrdersNOImgaes.png View File


BIN
images/OrdersOFFImgaes.png View File


BIN
images/newsOFFImages.png View File


BIN
images/newsONImages.png View File


+ 83
- 5
lib/pages/addressList/index.dart View File

11
 }
11
 }
12
 
12
 
13
 class _AddressList extends State<AddressList> {
13
 class _AddressList extends State<AddressList> {
14
+  bool isDetault = false;
14
   @override
15
   @override
15
   Widget build(BuildContext context) {
16
   Widget build(BuildContext context) {
16
     return Scaffold(
17
     return Scaffold(
30
       body: Container(
31
       body: Container(
31
         padding: EdgeInsets.all(15.w),
32
         padding: EdgeInsets.all(15.w),
32
         child: Column(
33
         child: Column(
34
+          //左对齐
35
+          crossAxisAlignment: CrossAxisAlignment.start,
33
           children: [
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
             DefaultButton(
113
             DefaultButton(
36
-              color: Color(0xffffffff),
37
-              backColor: Color(0xFFFF703B),
114
+              color: const Color(0xffffffff),
115
+              backColor: const Color(0xFFFF703B),
38
               width: 345.w,
116
               width: 345.w,
39
               height: 49.h,
117
               height: 49.h,
40
               text: '+新增收货地址',
118
               text: '+新增收货地址',
41
-              onPressed: (){},
42
-              margin: EdgeInsets.all(0),
119
+              onPressed: () {},
120
+              margin: const EdgeInsets.all(0),
43
               fontSize: 20.sp,
121
               fontSize: 20.sp,
44
               radius: 24.5.w,
122
               radius: 24.5.w,
45
             ),
123
             ),

+ 2
- 2
lib/pages/splash/splash.dart View File

16
   handleOnFinish() {
16
   handleOnFinish() {
17
     print(99999);
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
   @override
23
   @override