refactor: Remove primaryColor parameter from setCurrentTitle function

This commit is contained in:
2025-01-05 10:13:51 +08:00
parent 340e624d72
commit 2a6866fb26
17 changed files with 22 additions and 34 deletions

View File

@@ -299,8 +299,7 @@ class _SinglePageViewer extends State<SinglePageViewer>
: AppLocalizations.of(context)!.loading;
if (isTop(context)) {
if (!kIsWeb || (_data != null && kIsWeb)) {
setCurrentTitle(title, Theme.of(context).primaryColor.value,
includePrefix: false);
setCurrentTitle(title, includePrefix: false);
}
}
if (_data == null || _files == null) {