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

@ -20,14 +20,14 @@ class ArchiveView extends StatelessWidget {
builder: (BuildContext context, snapshot) => Scaffold(
appBar: AppBar(
leading: const Center(child: BackButton()),
title: Text(L10n.of(context)!.archive),
title: Text(L10n.of(context).archive),
actions: [
if (snapshot.data?.isNotEmpty ?? false)
Padding(
padding: const EdgeInsets.all(8.0),
child: TextButton.icon(
onPressed: controller.forgetAllAction,
label: Text(L10n.of(context)!.clearArchive),
label: Text(L10n.of(context).clearArchive),
icon: const Icon(Icons.cleaning_services_outlined),
),
),
@ -40,7 +40,7 @@ class ArchiveView extends StatelessWidget {
if (snapshot.hasError) {
return Center(
child: Text(
L10n.of(context)!.oopsSomethingWentWrong,
L10n.of(context).oopsSomethingWentWrong,
textAlign: TextAlign.center,
),
);