add delivery
This commit is contained in:
@@ -8,9 +8,9 @@ import '../main/util.dart';
|
||||
import 'shipment_info.dart';
|
||||
|
||||
class ShipmentListRow extends StatelessWidget {
|
||||
final Shipment pickUp;
|
||||
final Shipment shipment;
|
||||
final bool isCustomer;
|
||||
const ShipmentListRow({Key key, this.pickUp, this.isCustomer})
|
||||
const ShipmentListRow({Key key, this.shipment, this.isCustomer})
|
||||
: super(key: key);
|
||||
|
||||
@override
|
||||
@@ -19,7 +19,7 @@ class ShipmentListRow extends StatelessWidget {
|
||||
onTap: () {
|
||||
Navigator.of(context).push(CupertinoPageRoute(
|
||||
builder: (context) => ShipmentInfo(
|
||||
shipment: pickUp,
|
||||
shipment: shipment,
|
||||
isCustomer: isCustomer,
|
||||
)));
|
||||
},
|
||||
@@ -45,21 +45,19 @@ class ShipmentListRow extends StatelessWidget {
|
||||
Padding(
|
||||
padding: const EdgeInsets.only(left: 8.0),
|
||||
child: new Text(
|
||||
pickUp.shipmentNumber,
|
||||
shipment.shipmentNumber ?? "",
|
||||
style: new TextStyle(
|
||||
fontSize: 15.0, color: Colors.black),
|
||||
),
|
||||
),
|
||||
Padding(
|
||||
padding: const EdgeInsets.only(left: 10.0, top: 3),
|
||||
child: new Text(
|
||||
pickUp.id == null
|
||||
? ''
|
||||
: "Last ${pickUp.last} days",
|
||||
style: new TextStyle(
|
||||
fontSize: 15.0, color: Colors.grey),
|
||||
),
|
||||
)
|
||||
// Padding(
|
||||
// padding: const EdgeInsets.only(left: 10.0, top: 3),
|
||||
// child: new Text(
|
||||
// "Last ${shipment.last ?? 0} days",
|
||||
// style: new TextStyle(
|
||||
// fontSize: 15.0, color: Colors.grey),
|
||||
// ),
|
||||
// )
|
||||
],
|
||||
),
|
||||
),
|
||||
@@ -71,7 +69,7 @@ class ShipmentListRow extends StatelessWidget {
|
||||
children: <Widget>[
|
||||
Padding(
|
||||
padding: const EdgeInsets.all(0),
|
||||
child: getStatus(pickUp.status),
|
||||
child: getStatus(shipment.status ?? ""),
|
||||
),
|
||||
// Padding(
|
||||
// padding: const EdgeInsets.only(left: 8.0, top: 5, bottom: 5),
|
||||
|
||||
Reference in New Issue
Block a user