null safety

This commit is contained in:
phyothandar
2021-09-10 15:22:11 +06:30
parent 51a5fe0740
commit c90661b262
24 changed files with 194 additions and 193 deletions

View File

@@ -64,7 +64,7 @@ class _InvoiceShipmentListRowState extends State<InvoiceShipmentListRow> {
child: new Text(
_fcsShipment.shipmentNumber == null
? ''
: _fcsShipment.shipmentNumber,
: _fcsShipment.shipmentNumber!,
style: new TextStyle(
fontSize: 15.0, color: Colors.black),
),
@@ -72,7 +72,7 @@ class _InvoiceShipmentListRowState extends State<InvoiceShipmentListRow> {
Padding(
padding: const EdgeInsets.only(left: 10.0, top: 10),
child: new Text(
dateFormatter.format(_fcsShipment.cutoffDate),
dateFormatter.format(_fcsShipment.cutoffDate!),
style: new TextStyle(
fontSize: 15.0, color: Colors.grey),
),
@@ -86,7 +86,7 @@ class _InvoiceShipmentListRowState extends State<InvoiceShipmentListRow> {
),
Padding(
padding: const EdgeInsets.all(0),
child: getStatus(_fcsShipment.status),
child: getStatus(_fcsShipment.status!),
),
],
),