|
@@ -0,0 +1,216 @@
|
|
1
|
+import 'package:flutter/material.dart';
|
|
2
|
+import 'package:flutter_screenutil/flutter_screenutil.dart';
|
|
3
|
+
|
|
4
|
+class OrderListCard extends StatelessWidget {
|
|
5
|
+ const OrderListCard({Key? key}) : super(key: key);
|
|
6
|
+
|
|
7
|
+ @override
|
|
8
|
+ Widget build(BuildContext context) {
|
|
9
|
+ return Container(
|
|
10
|
+ width: 375.w,
|
|
11
|
+ height: 345.h,
|
|
12
|
+ decoration: const BoxDecoration(color: Colors.white, boxShadow: [
|
|
13
|
+ BoxShadow(
|
|
14
|
+ color: Colors.black12,
|
|
15
|
+ offset: Offset(0.0, 15.0), //阴影xy轴偏移量
|
|
16
|
+ blurRadius: 15.0, //阴影模糊程度
|
|
17
|
+ spreadRadius: 1.0 //阴影扩散程度
|
|
18
|
+ )
|
|
19
|
+ ]),
|
|
20
|
+ child: Row(
|
|
21
|
+ crossAxisAlignment: CrossAxisAlignment.start,
|
|
22
|
+ mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
23
|
+ children: [
|
|
24
|
+ Container(
|
|
25
|
+ margin: EdgeInsets.fromLTRB(15, 20, 15, 0),
|
|
26
|
+ width: 18.0,
|
|
27
|
+ height: 275.h,
|
|
28
|
+ child: Image(
|
|
29
|
+ image: AssetImage('images/ordersLeft.png'),
|
|
30
|
+ ),
|
|
31
|
+ ),
|
|
32
|
+ Expanded(
|
|
33
|
+ child: Column(
|
|
34
|
+ crossAxisAlignment: CrossAxisAlignment.start,
|
|
35
|
+ children: [
|
|
36
|
+ Container(
|
|
37
|
+ width: 320.w,
|
|
38
|
+ margin: EdgeInsets.fromLTRB(0, 10, 0, 15),
|
|
39
|
+ padding: EdgeInsets.fromLTRB(0, 0, 0, 20),
|
|
40
|
+ decoration: const BoxDecoration(
|
|
41
|
+ border: Border(
|
|
42
|
+ bottom:
|
|
43
|
+ BorderSide(width: 0.5, color: Color(0x20000000)
|
|
44
|
+ // 0x17000000
|
|
45
|
+ ))),
|
|
46
|
+ child: Row(
|
|
47
|
+ mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
48
|
+ children: [
|
|
49
|
+ Container(
|
|
50
|
+ child: RichText(
|
|
51
|
+ text: const TextSpan(children: <InlineSpan>[
|
|
52
|
+ TextSpan(
|
|
53
|
+ text: '订单编号:',
|
|
54
|
+ style: TextStyle(
|
|
55
|
+ color: Color(0xff666666),
|
|
56
|
+ fontSize: 16,
|
|
57
|
+ fontWeight: FontWeight.bold)),
|
|
58
|
+ TextSpan(
|
|
59
|
+ text: 'XUHUI12345',
|
|
60
|
+ style: TextStyle(
|
|
61
|
+ color: Color(0xff222222),
|
|
62
|
+ fontSize: 16,
|
|
63
|
+ fontWeight: FontWeight.bold)),
|
|
64
|
+ ]),
|
|
65
|
+ ),
|
|
66
|
+ ),
|
|
67
|
+ GestureDetector(
|
|
68
|
+ child: const Text('详情 >>',
|
|
69
|
+ style: TextStyle(
|
|
70
|
+ color: Color(0xff222222),
|
|
71
|
+ fontSize: 16,
|
|
72
|
+ fontWeight: FontWeight.bold,
|
|
73
|
+ )),
|
|
74
|
+ onTap: () {
|
|
75
|
+ print('进入详情');
|
|
76
|
+ },
|
|
77
|
+ )
|
|
78
|
+ ],
|
|
79
|
+ ),
|
|
80
|
+ ),
|
|
81
|
+ Expanded(
|
|
82
|
+ child: Column(
|
|
83
|
+ crossAxisAlignment: CrossAxisAlignment.start,
|
|
84
|
+ children: [
|
|
85
|
+ Padding(
|
|
86
|
+ padding: EdgeInsets.fromLTRB(0, 0, 0, 15),
|
|
87
|
+ child: RichText(
|
|
88
|
+ text: const TextSpan(children: <InlineSpan>[
|
|
89
|
+ TextSpan(
|
|
90
|
+ text: '农机名称:',
|
|
91
|
+ style: TextStyle(
|
|
92
|
+ color: Color(0xff666666),
|
|
93
|
+ fontSize: 16,
|
|
94
|
+ fontWeight: FontWeight.bold)),
|
|
95
|
+ TextSpan(
|
|
96
|
+ text: '老李家收割机MVGV-005',
|
|
97
|
+ style: TextStyle(
|
|
98
|
+ color: Color(0xff222222),
|
|
99
|
+ fontSize: 16,
|
|
100
|
+ fontWeight: FontWeight.bold)),
|
|
101
|
+ ]),
|
|
102
|
+ ),
|
|
103
|
+ ),
|
|
104
|
+ Padding(
|
|
105
|
+ padding: EdgeInsets.fromLTRB(0, 0, 0, 15),
|
|
106
|
+ child: RichText(
|
|
107
|
+ text: const TextSpan(children: <InlineSpan>[
|
|
108
|
+ TextSpan(
|
|
109
|
+ text: '需求数量:',
|
|
110
|
+ style: TextStyle(
|
|
111
|
+ color: Color(0xff666666),
|
|
112
|
+ fontSize: 16,
|
|
113
|
+ fontWeight: FontWeight.bold)),
|
|
114
|
+ TextSpan(
|
|
115
|
+ text: '2辆',
|
|
116
|
+ style: TextStyle(
|
|
117
|
+ color: Color(0xff222222),
|
|
118
|
+ fontSize: 16,
|
|
119
|
+ fontWeight: FontWeight.bold)),
|
|
120
|
+ ]),
|
|
121
|
+ ),
|
|
122
|
+ ),
|
|
123
|
+ Padding(
|
|
124
|
+ padding: EdgeInsets.fromLTRB(0, 0, 0, 15),
|
|
125
|
+ child: RichText(
|
|
126
|
+ text: const TextSpan(children: <InlineSpan>[
|
|
127
|
+ TextSpan(
|
|
128
|
+ text: '需求时间:',
|
|
129
|
+ style: TextStyle(
|
|
130
|
+ color: Color(0xff666666),
|
|
131
|
+ fontSize: 16,
|
|
132
|
+ fontWeight: FontWeight.bold)),
|
|
133
|
+ TextSpan(
|
|
134
|
+ text: '2018-08-21',
|
|
135
|
+ style: TextStyle(
|
|
136
|
+ color: Color(0xff222222),
|
|
137
|
+ fontSize: 16,
|
|
138
|
+ fontWeight: FontWeight.bold)),
|
|
139
|
+ ]),
|
|
140
|
+ ),
|
|
141
|
+ ),
|
|
142
|
+ Padding(
|
|
143
|
+ padding: EdgeInsets.fromLTRB(0, 0, 0, 4),
|
|
144
|
+ child: RichText(
|
|
145
|
+ text: const TextSpan(children: <InlineSpan>[
|
|
146
|
+ TextSpan(
|
|
147
|
+ text: '下单时间:',
|
|
148
|
+ style: TextStyle(
|
|
149
|
+ color: Color(0xff666666),
|
|
150
|
+ fontSize: 16,
|
|
151
|
+ fontWeight: FontWeight.bold)),
|
|
152
|
+ TextSpan(
|
|
153
|
+ text: '2022-04-13',
|
|
154
|
+ style: TextStyle(
|
|
155
|
+ color: Color(0xff222222),
|
|
156
|
+ fontSize: 16,
|
|
157
|
+ fontWeight: FontWeight.bold)),
|
|
158
|
+ ]),
|
|
159
|
+ ),
|
|
160
|
+ ),
|
|
161
|
+ ],
|
|
162
|
+ )),
|
|
163
|
+ Container(
|
|
164
|
+ margin: EdgeInsets.fromLTRB(0, 0, 0, 30),
|
|
165
|
+ padding: EdgeInsets.fromLTRB(0, 20, 0, 0),
|
|
166
|
+ decoration: const BoxDecoration(
|
|
167
|
+ border: Border(
|
|
168
|
+ top: BorderSide(
|
|
169
|
+ width: 0.5, color: Color(0x20000000)))),
|
|
170
|
+ width: 320.w,
|
|
171
|
+ child: Row(
|
|
172
|
+ mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
173
|
+ children: [
|
|
174
|
+ RichText(
|
|
175
|
+ text: const TextSpan(children: <InlineSpan>[
|
|
176
|
+ TextSpan(
|
|
177
|
+ text: '订单状态:',
|
|
178
|
+ style: TextStyle(
|
|
179
|
+ color: Color(0xff666666),
|
|
180
|
+ fontSize: 16,
|
|
181
|
+ fontWeight: FontWeight.bold)),
|
|
182
|
+ TextSpan(
|
|
183
|
+ text: '待付款',
|
|
184
|
+ style: TextStyle(
|
|
185
|
+ color: Color(0xff51D4FF),
|
|
186
|
+ fontSize: 16,
|
|
187
|
+ fontWeight: FontWeight.bold)),
|
|
188
|
+ ]),
|
|
189
|
+ ),
|
|
190
|
+ RichText(
|
|
191
|
+ text: const TextSpan(children: <InlineSpan>[
|
|
192
|
+ TextSpan(
|
|
193
|
+ text: '费用:',
|
|
194
|
+ style: TextStyle(
|
|
195
|
+ color: Color(0xff666666),
|
|
196
|
+ fontSize: 16,
|
|
197
|
+ fontWeight: FontWeight.bold)),
|
|
198
|
+ TextSpan(
|
|
199
|
+ text: '850元',
|
|
200
|
+ style: TextStyle(
|
|
201
|
+ color: Color(0xffB61515),
|
|
202
|
+ fontSize: 16,
|
|
203
|
+ fontWeight: FontWeight.bold)),
|
|
204
|
+ ]),
|
|
205
|
+ ),
|
|
206
|
+ ],
|
|
207
|
+ ),
|
|
208
|
+ ),
|
|
209
|
+ ],
|
|
210
|
+ ),
|
|
211
|
+ ),
|
|
212
|
+ ],
|
|
213
|
+ ),
|
|
214
|
+ );
|
|
215
|
+ }
|
|
216
|
+}
|