null safety
This commit is contained in:
@@ -58,7 +58,9 @@ class InvoiceListRow extends StatelessWidget {
|
||||
fontSize: 13.0, color: primaryColor),
|
||||
),
|
||||
new Text(
|
||||
dateFormatter.format(invoice!.invoiceDate!),
|
||||
invoice!.invoiceDate != null
|
||||
? dateFormatter.format(invoice!.invoiceDate!)
|
||||
: '',
|
||||
style: new TextStyle(
|
||||
fontSize: 15.0, color: Colors.grey),
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user