check null safety
This commit is contained in:
@@ -70,15 +70,15 @@ class CartonPackageTable extends StatelessWidget {
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
Text(
|
||||
p.value.trackingID,
|
||||
p.value.trackingID ?? "",
|
||||
style: textStyle,
|
||||
),
|
||||
Text(
|
||||
p.value.deliveryAddress.fullName,
|
||||
p.value.deliveryAddress?.fullName ?? "",
|
||||
style: textStyle,
|
||||
),
|
||||
Text(
|
||||
p.value.deliveryAddress.phoneNumber,
|
||||
p.value.deliveryAddress?.phoneNumber ?? "",
|
||||
style: textStyle,
|
||||
),
|
||||
],
|
||||
@@ -88,7 +88,7 @@ class CartonPackageTable extends StatelessWidget {
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
new Text(
|
||||
p.value.desc,
|
||||
p.value.desc ?? "",
|
||||
style: textStyle,
|
||||
),
|
||||
new Text(
|
||||
|
||||
Reference in New Issue
Block a user