new: setting of doubleColumn on Desktop

This commit is contained in:
lollipopkit
2023-09-07 18:54:35 +08:00
parent b55b8bf831
commit 03f9e88bad
13 changed files with 58 additions and 21 deletions

View File

@@ -204,6 +204,7 @@ class _SettingPageState extends State<SettingPage> {
_buildMaxRetry(),
_buildDiskIgnorePath(),
_buildDeleteServers(),
if (isDesktop) _buildDoubleColumnServersPage(),
].map((e) => RoundRectCard(e)).toList(),
);
}
@@ -1057,4 +1058,11 @@ class _SettingPageState extends State<SettingPage> {
trailing: buildSwitch(context, _setting.sftpRmrfDir),
);
}
Widget _buildDoubleColumnServersPage() {
return ListTile(
title: Text(_s.doubleColumnMode),
trailing: buildSwitch(context, _setting.doubleColumnServersPage),
);
}
}