This commit is contained in:
lollipopkit
2023-09-08 20:05:43 +08:00
parent 84e99048ab
commit b187ec88be
7 changed files with 52 additions and 30 deletions

View File

@@ -5,7 +5,11 @@ import '../server/system.dart';
const _cmdDivider = '\necho $seperator\n\t';
const _serverBoxDir = r'$HOME/.config/server_box';
const _shellPath = '$_serverBoxDir/mobile_app_v${BuildData.build}.sh';
/// Issue #159
/// Use script commit count as version of shell script.
/// So different version of app can run at the same time.
const _shellPath = '$_serverBoxDir/mobile_v${BuildData.script}.sh';
enum AppShellFuncType {
status,

View File

@@ -2,8 +2,9 @@
class BuildData {
static const String name = "ServerBox";
static const int build = 535;
static const int build = 538;
static const String engine = "3.13.2";
static const String buildAt = "2023-09-07 21:19:54.084724";
static const int modifications = 0;
static const String buildAt = "2023-09-08 19:51:19.470479";
static const int modifications = 4;
static const int script = 13;
}

View File

@@ -319,14 +319,15 @@ class _SettingPageState extends State<SettingPage> {
child: StatefulBuilder(builder: (context, setState) {
final children = <Widget>[
/// Plugin [dynamic_color] is not supported on iOS
if (!isIOS) ListTile(
title: Text(_s.followSystem),
trailing: buildSwitch(
context,
_setting.useSystemPrimaryColor,
func: (_) => setState(() {}),
),
)
if (!isIOS)
ListTile(
title: Text(_s.followSystem),
trailing: buildSwitch(
context,
_setting.useSystemPrimaryColor,
func: (_) => setState(() {}),
),
)
];
if (!_setting.useSystemPrimaryColor.fetch()) {
children.addAll([