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

@@ -17,7 +17,7 @@ class ServerUrlSettingsPage extends StatefulWidget {
}
class _ServerUrlSettingsPage extends State<ServerUrlSettingsPage>
with ThemeModeWidget {
with ThemeModeWidget, IsTopWidget2 {
String _serverUrl = "";
String _apiPath = "/api/";
bool _isValid = false;
@@ -78,8 +78,10 @@ class _ServerUrlSettingsPage extends State<ServerUrlSettingsPage>
buildThemeModeIcon(context),
];
if (hasBaseUrl) actions.add(buildMoreVertSettingsButon(context));
setCurrentTitle("${i18n.settings} - ${i18n.setServerUrl}",
Theme.of(context).primaryColor.value);
if (isTop(context)) {
setCurrentTitle("${i18n.settings} - ${i18n.setServerUrl}",
Theme.of(context).primaryColor.value);
}
return Scaffold(
appBar: AppBar(
title: Text(i18n.setServerUrl),