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

@ -134,7 +134,7 @@ class MyCallingPage extends State<Calling> {
Room? get room => call.room;
String get displayName => call.room.getLocalizedDisplayname(
MatrixLocals(L10n.of(widget.context)!),
MatrixLocals(L10n.of(widget.context)),
);
String get callId => widget.callId;
@ -296,14 +296,14 @@ class MyCallingPage extends State<Calling> {
channelId: 'notification_channel_id',
channelName: 'Foreground Notification',
channelDescription:
L10n.of(widget.context)!.foregroundServiceRunning,
L10n.of(widget.context).foregroundServiceRunning,
),
iosNotificationOptions: const IOSNotificationOptions(),
foregroundTaskOptions: const ForegroundTaskOptions(),
);
FlutterForegroundTask.startService(
notificationTitle: L10n.of(widget.context)!.screenSharingTitle,
notificationText: L10n.of(widget.context)!.screenSharingDetail,
notificationTitle: L10n.of(widget.context).screenSharingTitle,
notificationText: L10n.of(widget.context).screenSharingDetail,
);
} else {
FlutterForegroundTask.stopService();
@ -457,7 +457,7 @@ class MyCallingPage extends State<Calling> {
var title = '';
if (call.localHold) {
title = '${call.room.getLocalizedDisplayname(
MatrixLocals(L10n.of(widget.context)!),
MatrixLocals(L10n.of(widget.context)),
)} held the call.';
} else if (call.remoteOnHold) {
title = 'You held the call.';