new: setting of default collapse
This commit is contained in:
@@ -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),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user