|
@@ -6,205 +6,219 @@ class OrderInfoCard extends StatelessWidget {
|
6
|
6
|
|
7
|
7
|
@override
|
8
|
8
|
Widget build(BuildContext context) {
|
9
|
|
- return Container(
|
10
|
|
- width: 345.w,
|
11
|
|
- height: 484.5.h,
|
12
|
|
- margin: EdgeInsets.fromLTRB(15.w, 17.w, 15.w, 0),
|
13
|
|
- decoration: BoxDecoration(
|
14
|
|
- color: Colors.white,
|
15
|
|
- //设置四周圆角 角度
|
16
|
|
- borderRadius: BorderRadius.all(Radius.circular(2.0)),
|
17
|
|
- //设置四周边框
|
18
|
|
- boxShadow: [
|
19
|
|
- BoxShadow(
|
20
|
|
- blurRadius: 10, //阴影范围
|
21
|
|
- spreadRadius: 0.1, //阴影浓度
|
22
|
|
- color: Colors.grey.withOpacity(0.2), //阴影颜色
|
23
|
|
- ),
|
24
|
|
- ],
|
|
9
|
+ return Scaffold(
|
|
10
|
+ resizeToAvoidBottomInset: false,
|
|
11
|
+ appBar: AppBar(
|
|
12
|
+ elevation: 0,
|
|
13
|
+ centerTitle: true,
|
|
14
|
+ backgroundColor: Colors.white,
|
|
15
|
+ title: Text(
|
|
16
|
+ '订单详情',
|
|
17
|
+ style: TextStyle(
|
|
18
|
+ color: Colors.black,
|
|
19
|
+ fontSize: 17.sp,
|
|
20
|
+ letterSpacing: 2,
|
|
21
|
+ fontWeight: FontWeight.bold),
|
|
22
|
+ ),
|
25
|
23
|
),
|
26
|
|
- child: Column(
|
27
|
|
- crossAxisAlignment: CrossAxisAlignment.start,
|
28
|
|
- children: [
|
29
|
|
- Container(
|
30
|
|
- margin: EdgeInsets.fromLTRB(15.w, 0, 0, 0),
|
31
|
|
- child: Column(
|
32
|
|
- crossAxisAlignment: CrossAxisAlignment.start,
|
33
|
|
- children: [
|
34
|
|
- Container(
|
35
|
|
- padding: EdgeInsets.fromLTRB(0, 15, 0, 20),
|
36
|
|
- width: 314.w,
|
37
|
|
- decoration: const BoxDecoration(
|
38
|
|
- border: Border(
|
39
|
|
- bottom:
|
40
|
|
- BorderSide(width: 0.5, color: Color(0x20000000)
|
41
|
|
- // 0x17000000
|
42
|
|
- ))),
|
43
|
|
- child: RichText(
|
44
|
|
- text: const TextSpan(children: <InlineSpan>[
|
45
|
|
- TextSpan(
|
46
|
|
- text: '订单编号:',
|
47
|
|
- style: TextStyle(
|
48
|
|
- color: Color(0xff666666),
|
49
|
|
- fontSize: 16,
|
50
|
|
- fontWeight: FontWeight.bold)),
|
51
|
|
- TextSpan(
|
52
|
|
- text: 'XUHUI12345',
|
53
|
|
- style: TextStyle(
|
54
|
|
- color: Color(0xff222222),
|
55
|
|
- fontSize: 16,
|
56
|
|
- fontWeight: FontWeight.bold)),
|
57
|
|
- ]),
|
|
24
|
+ body: Container(
|
|
25
|
+ width: 345.w,
|
|
26
|
+ height: 484.5.h,
|
|
27
|
+ margin: EdgeInsets.fromLTRB(15.w, 17.w, 15.w, 0),
|
|
28
|
+ decoration: BoxDecoration(
|
|
29
|
+ color: Colors.white,
|
|
30
|
+ //设置四周圆角 角度
|
|
31
|
+ borderRadius: BorderRadius.all(Radius.circular(2.0)),
|
|
32
|
+ //设置四周边框
|
|
33
|
+ boxShadow: [
|
|
34
|
+ BoxShadow(
|
|
35
|
+ blurRadius: 10, //阴影范围
|
|
36
|
+ spreadRadius: 0.1, //阴影浓度
|
|
37
|
+ color: Colors.grey.withOpacity(0.2), //阴影颜色
|
|
38
|
+ ),
|
|
39
|
+ ],
|
|
40
|
+ ),
|
|
41
|
+ child: Column(
|
|
42
|
+ crossAxisAlignment: CrossAxisAlignment.start,
|
|
43
|
+ children: [
|
|
44
|
+ Container(
|
|
45
|
+ margin: EdgeInsets.fromLTRB(15.w, 0, 0, 0),
|
|
46
|
+ child: Column(
|
|
47
|
+ crossAxisAlignment: CrossAxisAlignment.start,
|
|
48
|
+ children: [
|
|
49
|
+ Container(
|
|
50
|
+ padding: EdgeInsets.fromLTRB(0, 15, 0, 20),
|
|
51
|
+ width: 314.w,
|
|
52
|
+ decoration: const BoxDecoration(
|
|
53
|
+ border: Border(
|
|
54
|
+ bottom: BorderSide(
|
|
55
|
+ width: 0.5, color: Color(0x20000000)
|
|
56
|
+ // 0x17000000
|
|
57
|
+ ))),
|
|
58
|
+ child: RichText(
|
|
59
|
+ text: const TextSpan(children: <InlineSpan>[
|
|
60
|
+ TextSpan(
|
|
61
|
+ text: '订单编号:',
|
|
62
|
+ style: TextStyle(
|
|
63
|
+ color: Color(0xff666666),
|
|
64
|
+ fontSize: 16,
|
|
65
|
+ fontWeight: FontWeight.bold)),
|
|
66
|
+ TextSpan(
|
|
67
|
+ text: 'XUHUI12345',
|
|
68
|
+ style: TextStyle(
|
|
69
|
+ color: Color(0xff222222),
|
|
70
|
+ fontSize: 16,
|
|
71
|
+ fontWeight: FontWeight.bold)),
|
|
72
|
+ ]),
|
|
73
|
+ ),
|
58
|
74
|
),
|
59
|
|
- ),
|
60
|
|
- Padding(
|
61
|
|
- padding: EdgeInsets.fromLTRB(0, 20, 0, 15),
|
62
|
|
- child: RichText(
|
63
|
|
- text: const TextSpan(children: <InlineSpan>[
|
64
|
|
- TextSpan(
|
65
|
|
- text: '农机名称:',
|
66
|
|
- style: TextStyle(
|
67
|
|
- color: Color(0xff666666),
|
68
|
|
- fontSize: 16,
|
69
|
|
- fontWeight: FontWeight.bold)),
|
70
|
|
- TextSpan(
|
71
|
|
- text: '老李家收割机MVGV-005',
|
72
|
|
- style: TextStyle(
|
73
|
|
- color: Color(0xff222222),
|
74
|
|
- fontSize: 16,
|
75
|
|
- fontWeight: FontWeight.bold)),
|
76
|
|
- ]),
|
|
75
|
+ Padding(
|
|
76
|
+ padding: EdgeInsets.fromLTRB(0, 20, 0, 15),
|
|
77
|
+ child: RichText(
|
|
78
|
+ text: const TextSpan(children: <InlineSpan>[
|
|
79
|
+ TextSpan(
|
|
80
|
+ text: '农机名称:',
|
|
81
|
+ style: TextStyle(
|
|
82
|
+ color: Color(0xff666666),
|
|
83
|
+ fontSize: 16,
|
|
84
|
+ fontWeight: FontWeight.bold)),
|
|
85
|
+ TextSpan(
|
|
86
|
+ text: '老李家收割机MVGV-005',
|
|
87
|
+ style: TextStyle(
|
|
88
|
+ color: Color(0xff222222),
|
|
89
|
+ fontSize: 16,
|
|
90
|
+ fontWeight: FontWeight.bold)),
|
|
91
|
+ ]),
|
|
92
|
+ ),
|
77
|
93
|
),
|
78
|
|
- ),
|
79
|
|
- Padding(
|
80
|
|
- padding: EdgeInsets.fromLTRB(0, 0, 0, 15),
|
81
|
|
- child: RichText(
|
82
|
|
- text: const TextSpan(children: <InlineSpan>[
|
83
|
|
- TextSpan(
|
84
|
|
- text: '作业面积:',
|
85
|
|
- style: TextStyle(
|
86
|
|
- color: Color(0xff666666),
|
87
|
|
- fontSize: 16,
|
88
|
|
- fontWeight: FontWeight.bold)),
|
89
|
|
- TextSpan(
|
90
|
|
- text: '1',
|
91
|
|
- style: TextStyle(
|
92
|
|
- color: Color(0xff222222),
|
93
|
|
- fontSize: 16,
|
94
|
|
- fontWeight: FontWeight.bold)),
|
95
|
|
- ]),
|
|
94
|
+ Padding(
|
|
95
|
+ padding: EdgeInsets.fromLTRB(0, 0, 0, 15),
|
|
96
|
+ child: RichText(
|
|
97
|
+ text: const TextSpan(children: <InlineSpan>[
|
|
98
|
+ TextSpan(
|
|
99
|
+ text: '作业面积:',
|
|
100
|
+ style: TextStyle(
|
|
101
|
+ color: Color(0xff666666),
|
|
102
|
+ fontSize: 16,
|
|
103
|
+ fontWeight: FontWeight.bold)),
|
|
104
|
+ TextSpan(
|
|
105
|
+ text: '1',
|
|
106
|
+ style: TextStyle(
|
|
107
|
+ color: Color(0xff222222),
|
|
108
|
+ fontSize: 16,
|
|
109
|
+ fontWeight: FontWeight.bold)),
|
|
110
|
+ ]),
|
|
111
|
+ ),
|
96
|
112
|
),
|
97
|
|
- ),
|
98
|
|
- Padding(
|
99
|
|
- padding: EdgeInsets.fromLTRB(0, 0, 0, 15),
|
100
|
|
- child: RichText(
|
101
|
|
- text: const TextSpan(children: <InlineSpan>[
|
102
|
|
- TextSpan(
|
103
|
|
- text: '需求时间:',
|
104
|
|
- style: TextStyle(
|
105
|
|
- color: Color(0xff666666),
|
106
|
|
- fontSize: 16,
|
107
|
|
- fontWeight: FontWeight.bold)),
|
108
|
|
- TextSpan(
|
109
|
|
- text: '2018-08-21',
|
110
|
|
- style: TextStyle(
|
111
|
|
- color: Color(0xff222222),
|
112
|
|
- fontSize: 16,
|
113
|
|
- fontWeight: FontWeight.bold)),
|
114
|
|
- ]),
|
|
113
|
+ Padding(
|
|
114
|
+ padding: EdgeInsets.fromLTRB(0, 0, 0, 15),
|
|
115
|
+ child: RichText(
|
|
116
|
+ text: const TextSpan(children: <InlineSpan>[
|
|
117
|
+ TextSpan(
|
|
118
|
+ text: '需求时间:',
|
|
119
|
+ style: TextStyle(
|
|
120
|
+ color: Color(0xff666666),
|
|
121
|
+ fontSize: 16,
|
|
122
|
+ fontWeight: FontWeight.bold)),
|
|
123
|
+ TextSpan(
|
|
124
|
+ text: '2018-08-21',
|
|
125
|
+ style: TextStyle(
|
|
126
|
+ color: Color(0xff222222),
|
|
127
|
+ fontSize: 16,
|
|
128
|
+ fontWeight: FontWeight.bold)),
|
|
129
|
+ ]),
|
|
130
|
+ ),
|
115
|
131
|
),
|
116
|
|
- ),
|
117
|
|
- Padding(
|
118
|
|
- padding: EdgeInsets.fromLTRB(0, 0, 0, 20),
|
119
|
|
- child: RichText(
|
120
|
|
- text: const TextSpan(children: <InlineSpan>[
|
121
|
|
- TextSpan(
|
122
|
|
- text: '下单时间:',
|
123
|
|
- style: TextStyle(
|
124
|
|
- color: Color(0xff666666),
|
125
|
|
- fontSize: 16,
|
126
|
|
- fontWeight: FontWeight.bold)),
|
127
|
|
- TextSpan(
|
128
|
|
- text: '2022-04-13',
|
129
|
|
- style: TextStyle(
|
130
|
|
- color: Color(0xff222222),
|
131
|
|
- fontSize: 16,
|
132
|
|
- fontWeight: FontWeight.bold)),
|
133
|
|
- ]),
|
|
132
|
+ Padding(
|
|
133
|
+ padding: EdgeInsets.fromLTRB(0, 0, 0, 20),
|
|
134
|
+ child: RichText(
|
|
135
|
+ text: const TextSpan(children: <InlineSpan>[
|
|
136
|
+ TextSpan(
|
|
137
|
+ text: '下单时间:',
|
|
138
|
+ style: TextStyle(
|
|
139
|
+ color: Color(0xff666666),
|
|
140
|
+ fontSize: 16,
|
|
141
|
+ fontWeight: FontWeight.bold)),
|
|
142
|
+ TextSpan(
|
|
143
|
+ text: '2022-04-13',
|
|
144
|
+ style: TextStyle(
|
|
145
|
+ color: Color(0xff222222),
|
|
146
|
+ fontSize: 16,
|
|
147
|
+ fontWeight: FontWeight.bold)),
|
|
148
|
+ ]),
|
|
149
|
+ ),
|
134
|
150
|
),
|
135
|
|
- ),
|
136
|
|
- Padding(
|
137
|
|
- padding: EdgeInsets.fromLTRB(0, 0, 0, 20),
|
138
|
|
- child: RichText(
|
139
|
|
- text: TextSpan(children: <InlineSpan>[
|
140
|
|
- TextSpan(
|
141
|
|
- text: '订单状态:',
|
142
|
|
- style: TextStyle(
|
143
|
|
- color: Color(0xff666666),
|
144
|
|
- fontSize: 16,
|
145
|
|
- fontWeight: FontWeight.bold)),
|
146
|
|
- TextSpan(
|
147
|
|
- text: '待付款',
|
148
|
|
- style: TextStyle(
|
149
|
|
- color: Color(0xff51D4FF),
|
150
|
|
- fontSize: 16,
|
151
|
|
- fontWeight: FontWeight.bold)),
|
152
|
|
- ]),
|
|
151
|
+ Padding(
|
|
152
|
+ padding: EdgeInsets.fromLTRB(0, 0, 0, 20),
|
|
153
|
+ child: RichText(
|
|
154
|
+ text: TextSpan(children: <InlineSpan>[
|
|
155
|
+ TextSpan(
|
|
156
|
+ text: '订单状态:',
|
|
157
|
+ style: TextStyle(
|
|
158
|
+ color: Color(0xff666666),
|
|
159
|
+ fontSize: 16,
|
|
160
|
+ fontWeight: FontWeight.bold)),
|
|
161
|
+ TextSpan(
|
|
162
|
+ text: '待付款',
|
|
163
|
+ style: TextStyle(
|
|
164
|
+ color: Color(0xff51D4FF),
|
|
165
|
+ fontSize: 16,
|
|
166
|
+ fontWeight: FontWeight.bold)),
|
|
167
|
+ ]),
|
|
168
|
+ ),
|
153
|
169
|
),
|
154
|
|
- ),
|
155
|
|
- Container(
|
156
|
|
- padding: EdgeInsets.fromLTRB(0, 20, 0, 0),
|
157
|
|
- width: 314.w,
|
158
|
|
- decoration: const BoxDecoration(
|
159
|
|
- border: Border(
|
160
|
|
- top: BorderSide(
|
161
|
|
- width: 0.8, color: Color(0x20000000)
|
162
|
|
- // 0x17000000
|
163
|
|
- ))),
|
164
|
|
- child: Column(
|
165
|
|
- children: [
|
166
|
|
- Row(
|
167
|
|
- mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
168
|
|
- children: [
|
169
|
|
- Text('费用:',
|
170
|
|
- style: TextStyle(
|
171
|
|
- color: Color(0xff666666),
|
172
|
|
- fontSize: 16,
|
173
|
|
- fontWeight: FontWeight.bold)),
|
174
|
|
- Text('8880',
|
175
|
|
- style: TextStyle(
|
176
|
|
- color: Color(0xffB61515),
|
177
|
|
- fontSize: 16,
|
178
|
|
- fontWeight: FontWeight.bold)),
|
179
|
|
- ],
|
180
|
|
- ),
|
181
|
|
- Padding(padding: EdgeInsets.fromLTRB(0, 30, 0, 0),
|
182
|
|
- child: Row(
|
|
170
|
+ Container(
|
|
171
|
+ padding: EdgeInsets.fromLTRB(0, 20, 0, 0),
|
|
172
|
+ width: 314.w,
|
|
173
|
+ decoration: const BoxDecoration(
|
|
174
|
+ border: Border(
|
|
175
|
+ top: BorderSide(
|
|
176
|
+ width: 0.8, color: Color(0x20000000)
|
|
177
|
+ // 0x17000000
|
|
178
|
+ ))),
|
|
179
|
+ child: Column(
|
|
180
|
+ children: [
|
|
181
|
+ Row(
|
183
|
182
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
184
|
183
|
children: [
|
185
|
|
- Text('状态:',
|
|
184
|
+ Text('费用:',
|
186
|
185
|
style: TextStyle(
|
187
|
186
|
color: Color(0xff666666),
|
188
|
187
|
fontSize: 16,
|
189
|
188
|
fontWeight: FontWeight.bold)),
|
190
|
|
- Text('待付款',
|
|
189
|
+ Text('8880',
|
191
|
190
|
style: TextStyle(
|
192
|
|
- color: Color(0xff51D4FF),
|
|
191
|
+ color: Color(0xffB61515),
|
193
|
192
|
fontSize: 16,
|
194
|
193
|
fontWeight: FontWeight.bold)),
|
195
|
194
|
],
|
196
|
195
|
),
|
197
|
|
-
|
198
|
|
- ),
|
199
|
|
-
|
200
|
|
- ],
|
201
|
|
- )),
|
202
|
|
- ],
|
203
|
|
- )),
|
204
|
|
-
|
205
|
|
- ],
|
|
196
|
+ Padding(
|
|
197
|
+ padding: EdgeInsets.fromLTRB(0, 30, 0, 0),
|
|
198
|
+ child: Row(
|
|
199
|
+ mainAxisAlignment:
|
|
200
|
+ MainAxisAlignment.spaceBetween,
|
|
201
|
+ children: [
|
|
202
|
+ Text('状态:',
|
|
203
|
+ style: TextStyle(
|
|
204
|
+ color: Color(0xff666666),
|
|
205
|
+ fontSize: 16,
|
|
206
|
+ fontWeight: FontWeight.bold)),
|
|
207
|
+ Text('待付款',
|
|
208
|
+ style: TextStyle(
|
|
209
|
+ color: Color(0xff51D4FF),
|
|
210
|
+ fontSize: 16,
|
|
211
|
+ fontWeight: FontWeight.bold)),
|
|
212
|
+ ],
|
|
213
|
+ ),
|
|
214
|
+ ),
|
|
215
|
+ ],
|
|
216
|
+ )),
|
|
217
|
+ ],
|
|
218
|
+ )),
|
|
219
|
+ ],
|
|
220
|
+ ),
|
206
|
221
|
),
|
207
|
|
-
|
208
|
222
|
);
|
209
|
223
|
}
|
210
|
224
|
}
|