Fix title may always be default title

This commit is contained in:
2024-06-03 04:55:22 +00:00
committed by GitHub
parent 727d3ecbe3
commit 760f36cfb9
7 changed files with 40 additions and 28 deletions

View File

@@ -18,7 +18,7 @@ class DisplaySettingsPage extends StatefulWidget {
}
class _DisplaySettingsPage extends State<DisplaySettingsPage>
with ThemeModeWidget {
with ThemeModeWidget, IsTopWidget2 {
bool _oriDisplayAd = false;
Lang _oriLang = Lang.system;
bool _oriPreventScreenCapture = false;
@@ -185,8 +185,10 @@ class _DisplaySettingsPage extends State<DisplaySettingsPage>
@override
Widget build(BuildContext context) {
final i18n = AppLocalizations.of(context)!;
setCurrentTitle("${i18n.settings} - ${i18n.display}",
Theme.of(context).primaryColor.value);
if (isTop(context)) {
setCurrentTitle("${i18n.settings} - ${i18n.display}",
Theme.of(context).primaryColor.value);
}
return Scaffold(
appBar: AppBar(
leading: IconButton(