new: setting of default collapse

This commit is contained in:
lollipopkit
2024-01-05 21:58:43 +08:00
parent 43fb481aee
commit b442e0f914
20 changed files with 125 additions and 53 deletions

View File

@@ -139,6 +139,7 @@ class _SettingPageState extends State<SettingPage> {
body: ListView(
padding: const EdgeInsets.symmetric(horizontal: 17),
children: [
/// TODO: Remember add new items in front of the each list, so the user can easily find the new items
_buildTitle('App'),
_buildApp(),
_buildTitle(l10n.server),
@@ -203,6 +204,7 @@ class _SettingPageState extends State<SettingPage> {
Widget _buildServer() {
return Column(
children: [
_buildCollapseUI(),
_buildServerFuncBtns(),
_buildSequence(),
_buildNetViewType(),
@@ -1104,4 +1106,12 @@ class _SettingPageState extends State<SettingPage> {
trailing: StoreSwitch(prop: _setting.editorHighlight),
);
}
Widget _buildCollapseUI() {
return ListTile(
title: Text(l10n.collapseUI),
subtitle: Text(l10n.collapseUITip, style: UIs.textGrey),
trailing: StoreSwitch(prop: _setting.collapseUIDefault),
);
}
}