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
|
|
@ -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.';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue