phase3: generated l10n/messages_all, events, actions, dialog null-safe
This commit is contained in:
@@ -15,7 +15,7 @@ import 'intl/messages_all.dart';
|
||||
class S {
|
||||
S();
|
||||
|
||||
static S current;
|
||||
static S current = S();
|
||||
|
||||
static const AppLocalizationDelegate delegate =
|
||||
AppLocalizationDelegate();
|
||||
@@ -32,7 +32,7 @@ class S {
|
||||
}
|
||||
|
||||
static S of(BuildContext context) {
|
||||
return Localizations.of<S>(context, S);
|
||||
return Localizations.of<S>(context, S) ?? S.current;
|
||||
}
|
||||
|
||||
/// `About`
|
||||
|
||||
Reference in New Issue
Block a user