Fixing warnings
This commit is contained in:
parent
1da09bd141
commit
0edc5e270b
|
|
@ -252,7 +252,7 @@ class DocumentPreview extends StatelessWidget {
|
|||
child: CircularProgressIndicator(),
|
||||
),
|
||||
),
|
||||
errorWidget: (context, url, error) => Text(
|
||||
errorWidget: (context, url, Object error) => Text(
|
||||
'$error: $url',
|
||||
maxLines: 6,
|
||||
overflow: TextOverflow.ellipsis,
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@ class CachedImage extends StatelessWidget {
|
|||
key: ValueKey(url),
|
||||
imageUrl: url,
|
||||
placeholder: (context, url) => CircularProgressIndicator(),
|
||||
errorWidget: (context, url, error) =>
|
||||
errorWidget: (context, url, Object error) =>
|
||||
Image.asset('assets/images/logo.png', width: 32, height: 30),
|
||||
);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -517,7 +517,6 @@ class _TemplatePreviewState extends State<TemplatePreview>
|
|||
if (!kIsWeb && widget.html != oldWidget.html) {
|
||||
_webViewController.loadUrl(
|
||||
Uri.dataFromString(widget.html, mimeType: 'text/html').toString());
|
||||
debugPrint('## LOAD: ${widget.html}');
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -391,8 +391,6 @@ mixin LocalizationsProvider on LocaleCodeAware {
|
|||
'company': 'Company',
|
||||
'generated_numbers': 'Generated Numbers',
|
||||
'charge_taxes': 'Charge Taxes',
|
||||
'credit': 'Credit',
|
||||
'credits': 'Credits',
|
||||
'next_reset': 'Next Reset',
|
||||
'reset_counter': 'Reset Counter',
|
||||
'recurring_prefix': 'Recurring Prefix',
|
||||
|
|
@ -539,7 +537,7 @@ mixin LocalizationsProvider on LocaleCodeAware {
|
|||
'military_time_help': '24 Hour Display',
|
||||
'send_reminders': 'Send Reminders',
|
||||
'timezone': 'Timezone',
|
||||
'filtered_by_group': 'Filtered by Project',
|
||||
'filtered_by_project': 'Filtered by Project',
|
||||
'filtered_by_group': 'Filtered by Group',
|
||||
'filtered_by_invoice': 'Filtered by Invoice',
|
||||
'filtered_by_client': 'Filtered by Client',
|
||||
|
|
@ -735,7 +733,6 @@ mixin LocalizationsProvider on LocaleCodeAware {
|
|||
'edit_expense': 'Edit Expense',
|
||||
'edit_vendor': 'Edit Vendor',
|
||||
'edit_project': 'Edit Project',
|
||||
'edit_credit': 'Edit Credit',
|
||||
'edit_recurring_invoice': 'Edit Recurring Invoice',
|
||||
'edit_recurring_expense': 'Edit Recurring Expense',
|
||||
'edit_recurring_quote': 'Edit Recurring Quote',
|
||||
|
|
@ -1086,7 +1083,6 @@ mixin LocalizationsProvider on LocaleCodeAware {
|
|||
'client_shipping_address2': 'Client Shipping Address 2',
|
||||
'type': 'Type',
|
||||
'invoice_amount': 'Invoice Amount',
|
||||
'invoice_date': 'Invoice Date',
|
||||
'invoice_due_date': 'Invoice Due Date',
|
||||
'tax_rate1': 'Tax Rate 1',
|
||||
'tax_rate2': 'Tax Rate 2',
|
||||
|
|
|
|||
Loading…
Reference in New Issue