李志伟 3 vuotta sitten
vanhempi
commit
99633ad48d
1 muutettua tiedostoa jossa 57 lisäystä ja 0 poistoa
  1. 57
    0
      lib/pages/addressList/index.dart

+ 57
- 0
lib/pages/addressList/index.dart Näytä tiedosto

@@ -0,0 +1,57 @@
1
+import 'package:flutter/material.dart';
2
+import 'package:flutter_screenutil/flutter_screenutil.dart';
3
+
4
+class AddressList extends StatefulWidget {
5
+  const AddressList({Key? key}) : super(key: key);
6
+
7
+  @override
8
+  _AddressList createState() => _AddressList();
9
+}
10
+
11
+class _AddressList extends State<AddressList> {
12
+  @override
13
+  Widget build(BuildContext context) {
14
+    return Scaffold(
15
+      appBar: AppBar(
16
+        elevation: 0,
17
+        centerTitle: true,
18
+        backgroundColor: Colors.white,
19
+        title: Text(
20
+          '地址管理',
21
+          style: TextStyle(
22
+              color: Colors.black,
23
+              fontSize: 17.sp,
24
+              letterSpacing: 2,
25
+              fontWeight: FontWeight.bold),
26
+        ),
27
+      ),
28
+      body: Container(
29
+        padding: EdgeInsets.all(15.w),
30
+        child: Column(
31
+          children: [
32
+            Text('地址'),
33
+            GestureDetector(
34
+              onTap: () {},
35
+              child: Container(
36
+                width: 345.w,
37
+                height: 49.h,
38
+                decoration: BoxDecoration(
39
+                  borderRadius: BorderRadius.all(Radius.circular(10.w)),
40
+                  color:Color(0xFFFF703B),
41
+                ),
42
+                child: Text(
43
+                  '+新增收货地址',
44
+                  style: TextStyle(
45
+                    color: Colors.white,
46
+                    fontWeight: FontWeight.bold,
47
+                    fontSize: 20.sp
48
+                  ),
49
+                ),
50
+              ),
51
+            ),
52
+          ],
53
+        ),
54
+      ),
55
+    );
56
+  }
57
+}