mirror of
https://github.com/lollipopkit/flutter_server_box.git
synced 2026-02-01 05:45:04 +01:00
fix
This commit is contained in:
@@ -60,11 +60,11 @@ Future<void> doUpdate(BuildContext context, {bool force = false}) async {
|
||||
if (update.build.min.current! > BuildData.build) {
|
||||
showRoundDialog(
|
||||
context: context,
|
||||
child: Text(s.updateTipTooLow(newest)),
|
||||
child: Text('Current version is too low\nplease update to v$newest'),
|
||||
actions: [
|
||||
TextButton(
|
||||
onPressed: () => _doUpdate(url, context, s),
|
||||
child: Text(s.ok),
|
||||
child: const Text('ok'),
|
||||
)
|
||||
],
|
||||
);
|
||||
@@ -73,7 +73,7 @@ Future<void> doUpdate(BuildContext context, {bool force = false}) async {
|
||||
|
||||
showSnackBarWithAction(
|
||||
context,
|
||||
'${s.updateTip(newest)} \n${update.changelog.current}',
|
||||
'Update: v$newest\n${update.changelog.current}',
|
||||
s.update,
|
||||
() => _doUpdate(url, context, s),
|
||||
);
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
|
||||
class BuildData {
|
||||
static const String name = "ServerBox";
|
||||
static const int build = 365;
|
||||
static const int build = 368;
|
||||
static const String engine = "3.10.3";
|
||||
static const String buildAt = "2023-06-27 00:42:16.407149";
|
||||
static const int modifications = 3;
|
||||
static const String buildAt = "2023-06-27 14:36:00.133078";
|
||||
static const int modifications = 6;
|
||||
}
|
||||
|
||||
@@ -6,9 +6,11 @@ import 'package:code_text_field/code_text_field.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_gen/gen_l10n/l10n.dart';
|
||||
import 'package:flutter_highlight/theme_map.dart';
|
||||
import 'package:flutter_highlight/themes/a11y-light.dart';
|
||||
import 'package:flutter_highlight/themes/monokai.dart';
|
||||
import 'package:toolbox/core/extension/navigator.dart';
|
||||
import 'package:toolbox/core/utils/misc.dart';
|
||||
import 'package:toolbox/core/utils/ui.dart';
|
||||
import 'package:toolbox/data/res/highlight.dart';
|
||||
import 'package:toolbox/data/store/setting.dart';
|
||||
import 'package:toolbox/locator.dart';
|
||||
@@ -38,7 +40,13 @@ class _EditorPageState extends State<EditorPage> with AfterLayoutMixin {
|
||||
_controller = CodeController(
|
||||
language: suffix2HighlightMap[_langCode],
|
||||
);
|
||||
_codeTheme = themeMap[_setting.editorTheme.fetch()] ?? monokaiTheme;
|
||||
|
||||
if (isDarkMode(context)) {
|
||||
_codeTheme = themeMap[_setting.editorDarkTheme.fetch()] ?? monokaiTheme;
|
||||
} else {
|
||||
_codeTheme = themeMap[_setting.editorTheme.fetch()] ?? a11yLightTheme;
|
||||
}
|
||||
|
||||
_focusNode.requestFocus();
|
||||
}
|
||||
|
||||
|
||||
@@ -124,7 +124,12 @@ class _ProcessPageState extends State<ProcessPage> {
|
||||
child: TwoLineText(up: proc.pid.toString(), down: proc.user),
|
||||
),
|
||||
title: Text(proc.binary),
|
||||
subtitle: Text(proc.command, style: grey, maxLines: 3, overflow: TextOverflow.fade,),
|
||||
subtitle: Text(
|
||||
proc.command,
|
||||
style: grey,
|
||||
maxLines: 3,
|
||||
overflow: TextOverflow.fade,
|
||||
),
|
||||
trailing: Row(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
children: [
|
||||
|
||||
Reference in New Issue
Block a user