new: hideTitlebar & cupertinoRoute

This commit is contained in:
lollipopkit
2024-04-08 23:43:24 +08:00
parent 7d2fbde2fe
commit 4fd82afade
19 changed files with 93 additions and 29 deletions

View File

@@ -119,7 +119,7 @@ class _SettingPageState extends State<SettingPage> {
_buildAppColor(),
//_buildLaunchPage(),
_buildCheckUpdate(),
_buildCollapseUI(),
_buildAppMore(),
];
/// Platform specific settings
@@ -1065,4 +1065,29 @@ class _SettingPageState extends State<SettingPage> {
},
);
}
Widget _buildAppMore() {
return ExpandTile(
title: Text(l10n.more),
children: [
_buildCollapseUI(),
_buildCupertinoRoute(),
if (isDesktop) _buildHideTitleBar(),
],
);
}
Widget _buildCupertinoRoute() {
return ListTile(
title: Text('Cupertino ${l10n.route}'),
trailing: StoreSwitch(prop: _setting.cupertinoRoute),
);
}
Widget _buildHideTitleBar() {
return ListTile(
title: Text(l10n.hideTitleBar),
trailing: StoreSwitch(prop: _setting.hideTitleBar),
);
}
}