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
|
|
@ -79,7 +79,7 @@ extension on SyncStatusUpdate {
|
|||
String toLocalizedString(BuildContext context) {
|
||||
switch (status) {
|
||||
case SyncStatus.waitingForResponse:
|
||||
return L10n.of(context)!.loadingPleaseWait;
|
||||
return L10n.of(context).loadingPleaseWait;
|
||||
case SyncStatus.error:
|
||||
return ((error?.exception ?? Object()) as Object)
|
||||
.toLocalizedString(context);
|
||||
|
|
@ -87,7 +87,7 @@ extension on SyncStatusUpdate {
|
|||
case SyncStatus.cleaningUp:
|
||||
case SyncStatus.finished:
|
||||
default:
|
||||
return L10n.of(context)!.synchronizingPleaseWait;
|
||||
return L10n.of(context).synchronizingPleaseWait;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue