add update shipments

This commit is contained in:
Sai Naw Wun
2020-10-18 02:38:46 +06:30
parent fa9738f307
commit 4f8bde40b0
37 changed files with 596 additions and 455 deletions

View File

@@ -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),
),