update carton and add staff name
This commit is contained in:
@@ -10,8 +10,6 @@ import 'package:fcs/pages/widgets/progress.dart';
|
||||
import 'package:flutter/cupertino.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:provider/provider.dart';
|
||||
|
||||
import 'custom_row.dart';
|
||||
import 'model/shipment_rate_model.dart';
|
||||
|
||||
class CustomList extends StatefulWidget {
|
||||
@@ -88,7 +86,11 @@ class _CustomListState extends State<CustomList> {
|
||||
},
|
||||
child: Container(
|
||||
child: _row(
|
||||
custom.productType, "\$ " + custom.fee.toStringAsFixed(2)),
|
||||
custom.productType,
|
||||
"\$ " + custom.fee.toStringAsFixed(2),
|
||||
custom.shipmentRate == null
|
||||
? ""
|
||||
: "\$ " + custom.shipmentRate.toStringAsFixed(2)),
|
||||
),
|
||||
);
|
||||
}),
|
||||
@@ -96,7 +98,7 @@ class _CustomListState extends State<CustomList> {
|
||||
);
|
||||
}
|
||||
|
||||
_row(String desc, String price) {
|
||||
_row(String desc, String fee, String shipmentRate) {
|
||||
return Container(
|
||||
padding: EdgeInsets.only(left: 25, top: 5, bottom: 5),
|
||||
child: Row(
|
||||
@@ -109,10 +111,19 @@ class _CustomListState extends State<CustomList> {
|
||||
Padding(
|
||||
padding: const EdgeInsets.only(bottom: 3.0),
|
||||
child: Text(
|
||||
'$price',
|
||||
'$fee',
|
||||
style: TextStyle(color: primaryColor, fontSize: 14),
|
||||
),
|
||||
),
|
||||
shipmentRate == ""
|
||||
? Container()
|
||||
: Padding(
|
||||
padding: const EdgeInsets.only(top: 3.0),
|
||||
child: Text(
|
||||
"\$ " + "$shipmentRate",
|
||||
style: TextStyle(color: Colors.grey, fontSize: 14),
|
||||
),
|
||||
)
|
||||
],
|
||||
),
|
||||
SizedBox(
|
||||
|
||||
Reference in New Issue
Block a user