mirror of
https://github.com/lollipopkit/flutter_server_box.git
synced 2025-12-18 07:44:26 +01:00
opt. for settings page
This commit is contained in:
@@ -92,16 +92,14 @@ class _SettingPageState extends State<SettingPage> {
|
||||
body: ListView(
|
||||
padding: const EdgeInsets.symmetric(horizontal: 17),
|
||||
children: [
|
||||
// App
|
||||
_buildTitle('App'),
|
||||
_buildApp(),
|
||||
// Server
|
||||
_buildTitle(_s.fullScreen),
|
||||
_buildFullScreen(),
|
||||
_buildTitle(_s.server),
|
||||
_buildServer(),
|
||||
// SSH
|
||||
_buildTitle('SSH'),
|
||||
_buildSSH(),
|
||||
// Editor
|
||||
_buildTitle(_s.editor),
|
||||
_buildEditor(),
|
||||
const SizedBox(height: 37),
|
||||
@@ -129,8 +127,6 @@ class _SettingPageState extends State<SettingPage> {
|
||||
_buildAppColor(),
|
||||
_buildLaunchPage(),
|
||||
_buildCheckUpdate(),
|
||||
_buildFullScreen(),
|
||||
_buildFullScreenJitter(),
|
||||
];
|
||||
if (isIOS) {
|
||||
children.add(_buildPushToken());
|
||||
@@ -143,6 +139,15 @@ class _SettingPageState extends State<SettingPage> {
|
||||
);
|
||||
}
|
||||
|
||||
Widget _buildFullScreen() {
|
||||
return Column(
|
||||
children: [
|
||||
_buildFullScreenSwitch(),
|
||||
_buildFullScreenJitter(),
|
||||
].map((e) => RoundRectCard(e)).toList(),
|
||||
);
|
||||
}
|
||||
|
||||
Widget _buildServer() {
|
||||
return Column(
|
||||
children: [
|
||||
@@ -666,7 +671,7 @@ class _SettingPageState extends State<SettingPage> {
|
||||
);
|
||||
}
|
||||
|
||||
Widget _buildFullScreen() {
|
||||
Widget _buildFullScreenSwitch() {
|
||||
return ListTile(
|
||||
title: Text(_s.fullScreen),
|
||||
trailing: buildSwitch(
|
||||
|
||||
Reference in New Issue
Block a user