add update shipments
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
import 'package:fcs/domain/entities/box.dart';
|
||||
import 'package:fcs/domain/entities/carton.dart';
|
||||
import 'package:flutter/cupertino.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
class BoxRow extends StatelessWidget {
|
||||
final Box box;
|
||||
final Carton box;
|
||||
|
||||
const BoxRow({Key key, this.box}) : super(key: key);
|
||||
|
||||
@@ -27,9 +27,7 @@ class BoxRow extends StatelessWidget {
|
||||
Padding(
|
||||
padding: const EdgeInsets.only(left: 8.0),
|
||||
child: new Text(
|
||||
box.deliveryAddress.fullName == null
|
||||
? ''
|
||||
: box.deliveryAddress.fullName,
|
||||
box.deliveryAddress?.fullName ?? "",
|
||||
style: new TextStyle(
|
||||
fontSize: 15.0,
|
||||
color: Colors.black,
|
||||
@@ -39,9 +37,7 @@ class BoxRow extends StatelessWidget {
|
||||
Padding(
|
||||
padding: const EdgeInsets.only(left: 8.0),
|
||||
child: new Text(
|
||||
box.deliveryAddress.addressLine1 == null
|
||||
? ''
|
||||
: box.deliveryAddress.addressLine1,
|
||||
box.deliveryAddress?.addressLine1 ?? "",
|
||||
style: new TextStyle(
|
||||
fontSize: 14.0, color: Colors.grey),
|
||||
),
|
||||
@@ -49,9 +45,7 @@ class BoxRow extends StatelessWidget {
|
||||
Padding(
|
||||
padding: const EdgeInsets.only(left: 8.0),
|
||||
child: new Text(
|
||||
box.deliveryAddress.addressLine2 == null
|
||||
? ''
|
||||
: box.deliveryAddress.addressLine2,
|
||||
box.deliveryAddress?.addressLine2 ?? "",
|
||||
style: new TextStyle(
|
||||
fontSize: 14.0, color: Colors.grey),
|
||||
),
|
||||
@@ -59,9 +53,7 @@ class BoxRow extends StatelessWidget {
|
||||
Padding(
|
||||
padding: const EdgeInsets.only(left: 8.0),
|
||||
child: new Text(
|
||||
box.deliveryAddress.city == null
|
||||
? ''
|
||||
: box.deliveryAddress.city,
|
||||
box.deliveryAddress?.city ?? "",
|
||||
style: new TextStyle(
|
||||
fontSize: 14.0, color: Colors.grey),
|
||||
),
|
||||
@@ -69,9 +61,7 @@ class BoxRow extends StatelessWidget {
|
||||
Padding(
|
||||
padding: const EdgeInsets.only(left: 8.0),
|
||||
child: new Text(
|
||||
box.deliveryAddress.state == null
|
||||
? ''
|
||||
: box.deliveryAddress.state,
|
||||
box.deliveryAddress?.state ?? "",
|
||||
style: new TextStyle(
|
||||
fontSize: 14.0, color: Colors.grey),
|
||||
),
|
||||
@@ -79,9 +69,7 @@ class BoxRow extends StatelessWidget {
|
||||
Padding(
|
||||
padding: const EdgeInsets.only(left: 8.0),
|
||||
child: new Text(
|
||||
box.deliveryAddress.phoneNumber == null
|
||||
? ''
|
||||
: "Phone:${box.deliveryAddress.phoneNumber}",
|
||||
box.deliveryAddress?.phoneNumber ?? "",
|
||||
style: new TextStyle(
|
||||
fontSize: 14.0, color: Colors.grey),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user