refactor: Use non nullable localizations builder and lazy load on web
This commit is contained in:
parent
8cedd2a45a
commit
0d4b7d67cc
111 changed files with 879 additions and 883 deletions
|
|
@ -21,7 +21,7 @@ class ErrorReporter {
|
|||
await showAdaptiveDialog(
|
||||
context: context,
|
||||
builder: (context) => AlertDialog.adaptive(
|
||||
title: Text(L10n.of(context)!.reportErrorDescription),
|
||||
title: Text(L10n.of(context).reportErrorDescription),
|
||||
content: SizedBox(
|
||||
height: 256,
|
||||
width: 256,
|
||||
|
|
@ -36,13 +36,13 @@ class ErrorReporter {
|
|||
actions: [
|
||||
TextButton(
|
||||
onPressed: () => Navigator.of(context).pop(),
|
||||
child: Text(L10n.of(context)!.close),
|
||||
child: Text(L10n.of(context).close),
|
||||
),
|
||||
TextButton(
|
||||
onPressed: () => Clipboard.setData(
|
||||
ClipboardData(text: text),
|
||||
),
|
||||
child: Text(L10n.of(context)!.copy),
|
||||
child: Text(L10n.of(context).copy),
|
||||
),
|
||||
TextButton(
|
||||
onPressed: () => launchUrl(
|
||||
|
|
@ -56,7 +56,7 @@ class ErrorReporter {
|
|||
),
|
||||
mode: LaunchMode.externalApplication,
|
||||
),
|
||||
child: Text(L10n.of(context)!.report),
|
||||
child: Text(L10n.of(context).report),
|
||||
),
|
||||
],
|
||||
),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue