Add support to change title

This commit is contained in:
2023-09-14 17:48:39 +08:00
parent bc435bb567
commit a9f09ffdcd
6 changed files with 44 additions and 6 deletions

View File

@@ -17,6 +17,7 @@ class HomePage extends HookWidget {
Widget build(BuildContext context) {
tryInitApi(context);
var mode = useState(MainApp.of(context).themeMode);
setCurrentTitle("", usePrefix: true);
return Scaffold(
appBar: AppBar(
title: Text(AppLocalizations.of(context)!.titleBar),