refactor: Use non nullable localizations builder and lazy load on web

This commit is contained in:
krille-chan 2024-10-06 08:35:37 +02:00
commit 0d4b7d67cc
No known key found for this signature in database
111 changed files with 879 additions and 883 deletions

View file

@ -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),
),
],
),