@@ -24,6 +24,7 @@ class OrderDetailsScreen extends StatelessWidget {
24
24
body: Padding (
25
25
padding: const EdgeInsets .all (12 ),
26
26
child: SingleChildScrollView (
27
+ physics: const BouncingScrollPhysics (),
27
28
child: Column (
28
29
children: [
29
30
orderStatus (
@@ -144,16 +145,45 @@ class OrderDetailsScreen extends StatelessWidget {
144
145
physics: const NeverScrollableScrollPhysics (),
145
146
shrinkWrap: true ,
146
147
children: List .generate (
147
- data['orders' ].length,
148
- (index) => orderPlacedDetails (
149
- title1: data['orders' ][index]['title' ],
150
- title2:
151
- data['orders' ][index]['total_price' ].toString (),
152
- details1:
153
- data['orders' ][index]['quantity' ].toString (),
154
- details2: "Refundable" ,
155
- )).toList (),
148
+ data['orders' ].length,
149
+ (index) => Column (
150
+ children: [
151
+ orderPlacedDetails (
152
+ title1: data['orders' ][index]['title' ],
153
+ title2: data['orders' ][index]['total_price' ]
154
+ .toString ()
155
+ .numCurrency,
156
+ details1: data['orders' ][index]['quantity' ].toString (),
157
+ details2: "Refundable" ,
158
+ ),
159
+ const Divider (),
160
+ ],
161
+ ),
162
+ ).toList (),
163
+ ).box.outerShadowMd.white.make (),
164
+ 10. heightBox,
165
+ Padding (
166
+ padding:
167
+ const EdgeInsets .symmetric (horizontal: 20.0 , vertical: 10 ),
168
+ child: Row (
169
+ mainAxisAlignment: MainAxisAlignment .spaceBetween,
170
+ children: [
171
+ "SUB TOTAL"
172
+ .text
173
+ .size (16 )
174
+ .fontFamily (semibold)
175
+ .color (darkFontGrey)
176
+ .make (),
177
+ "${data ['total_amount' ]}"
178
+ .numCurrency
179
+ .text
180
+ .size (16 )
181
+ .color (redColor)
182
+ .make (),
183
+ ],
184
+ ),
156
185
),
186
+ 20. heightBox,
157
187
],
158
188
),
159
189
),
0 commit comments