opt.: docker rm container -f & font setting item

This commit is contained in:
lollipopkit
2023-12-21 14:06:18 +08:00
parent 4a93b326db
commit e686387d88
15 changed files with 72 additions and 32 deletions

View File

@@ -24,7 +24,7 @@ Future<String?> getToken() async {
}
String? getFileName(String? path) {
if (path == null) {
if (path == null || path.isEmpty) {
return null;
}
return path.split('/').last;

View File

@@ -2,9 +2,9 @@
class BuildData {
static const String name = "ServerBox";
static const int build = 685;
static const int build = 686;
static const String engine = "3.16.4";
static const String buildAt = "2023-12-20 14:09:17";
static const int modifications = 4;
static const int script = 32;
static const String buildAt = "2023-12-20 17:26:32";
static const int modifications = 2;
static const int script = 33;
}

View File

@@ -85,6 +85,7 @@
"followSystem": "System verfolgen",
"font": "Schriftarten",
"fontSize": "Schriftgröße",
"force": "freiwillig",
"foundNUpdate": "Update {count} gefunden",
"fullScreen": "Vollbildmodus",
"fullScreenJitter": "Jitter im Vollbildmodus",

View File

@@ -85,6 +85,7 @@
"followSystem": "Follow system",
"font": "Font",
"fontSize": "Font size",
"force": "Force",
"foundNUpdate": "Found {count} update",
"fullScreen": "Full screen mode",
"fullScreenJitter": "Full screen jitter",

View File

@@ -85,6 +85,7 @@
"followSystem": "Ikuti sistem",
"font": "Font",
"fontSize": "Ukuran huruf",
"force": "sukarela",
"foundNUpdate": "Menemukan {count} pembaruan",
"fullScreen": "Mode Layar Penuh",
"fullScreenJitter": "Jitter layar penuh",

View File

@@ -85,6 +85,7 @@
"followSystem": "跟随系统",
"font": "字体",
"fontSize": "字体大小",
"force": "强制",
"foundNUpdate": "找到 {count} 个更新",
"fullScreen": "全屏模式",
"fullScreenJitter": "全屏模式抖动",

View File

@@ -85,6 +85,7 @@
"followSystem": "跟隨系統",
"font": "字體",
"fontSize": "字體大小",
"force": "強制",
"foundNUpdate": "找到 {count} 個更新",
"fullScreen": "全屏模式",
"fullScreenJitter": "全屏模式抖動",

View File

@@ -365,16 +365,25 @@ class _DockerManagePageState extends State<DockerManagePage> {
context.showRoundDialog(
title: Text(l10n.attention),
child: Column(
mainAxisSize: MainAxisSize.min,
children: [
Text(l10n.askContinue(
'${l10n.delete} Container(${dItem.name})',
)),
StatefulBuilder(builder: (_, setState) {
return Checkbox(
value: force,
onChanged: (val) => setState(() => force = val ?? false),
);
}),
UIs.height13,
Row(
children: [
StatefulBuilder(builder: (_, setState) {
return Checkbox(
value: force,
onChanged: (val) => setState(
() => force = val ?? false,
),
);
}),
Text(l10n.force),
],
)
],
),
actions: [

View File

@@ -641,11 +641,16 @@ class _ServerDetailPageState extends State<ServerDetailPage>
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text('${battery.name}', style: UIs.text15),
Text('${battery.status.name} - ${battery.cycle} - ${battery.powerNow}', style: UIs.text13Grey),
Text(
'${battery.status.name} - ${battery.cycle} - ${battery.powerNow}',
style: UIs.text13Grey,
),
],
),
Text('${battery.percent?.toStringAsFixed(0)}%',
style: UIs.text13Grey),
Text(
'${battery.percent?.toStringAsFixed(0)}%',
style: UIs.text13Grey,
),
],
),
);