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

@@ -477,8 +477,7 @@ class _MainApp extends State<MainApp> with WidgetsBindingObserver {
routerConfig: _router,
onGenerateTitle: (context) {
final title = AppLocalizations.of(context)!.title;
setCurrentTitle(title, Theme.of(context).primaryColor.value,
isPrefix: true);
setCurrentTitle(title, isPrefix: true);
return title;
},
locale: _lang.toLocale(),