null safety
This commit is contained in:
@@ -118,7 +118,7 @@ class _InvoiceInfoState extends State<InvoiceInfo> {
|
||||
Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
Text(dateFormatter.format(_invoice!.invoiceDate)),
|
||||
Text(dateFormatter.format(_invoice!.invoiceDate!)),
|
||||
SizedBox(
|
||||
height: 5,
|
||||
),
|
||||
@@ -140,7 +140,7 @@ class _InvoiceInfoState extends State<InvoiceInfo> {
|
||||
);
|
||||
final paymentMethodBox = DisplayText(
|
||||
labelTextKey: "invoice.payment_method",
|
||||
text: _invoice!.paymentMethod.name,
|
||||
text: _invoice!.paymentMethod!.name,
|
||||
);
|
||||
|
||||
final cancelBtn = LocalButton(
|
||||
|
||||
Reference in New Issue
Block a user