opt.: l10n
This commit is contained in:
@@ -63,7 +63,7 @@ class _HomePageState extends State<HomePage>
|
||||
@override
|
||||
void didChangeDependencies() {
|
||||
super.didChangeDependencies();
|
||||
l10n = S.of(context)!;
|
||||
l10n = AppLocalizations.of(context)!;
|
||||
_isLandscape.value =
|
||||
MediaQuery.of(context).orientation == Orientation.landscape;
|
||||
}
|
||||
|
||||
@@ -532,7 +532,7 @@ class _SettingPageState extends State<SettingPage> {
|
||||
onTap: () async {
|
||||
final selected = await context.showPickSingleDialog(
|
||||
title: l10n.language,
|
||||
items: S.supportedLocales,
|
||||
items: AppLocalizations.supportedLocales,
|
||||
name: (p0) => p0.code,
|
||||
initial: _setting.locale.fetch().toLocale,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user