opt.: container status

This commit is contained in:
lollipopkit
2024-01-21 19:03:31 +08:00
parent 1434556e0b
commit 83dccfda1a
13 changed files with 68 additions and 5 deletions

View File

@@ -188,6 +188,7 @@
"result": "Result",
"rotateAngel": "Rotationswinkel",
"run": "Ausführen",
"running": "läuft",
"save": "Speichern",
"saved": "Gerettet",
"second": "s",
@@ -217,6 +218,7 @@
"start": "Start",
"stats": "Statistik",
"stop": "Stop",
"stopped": "Ausgelaufen",
"success": "Erfolgreich",
"supportFmtArgs": "Die folgenden Formatierungsparameter werden unterstützt:",
"suspend": "Suspend",

View File

@@ -188,6 +188,7 @@
"result": "Result",
"rotateAngel": "Rotation angle",
"run": "Run",
"running": "Running",
"save": "Save",
"saved": "Saved",
"second": "s",
@@ -217,6 +218,7 @@
"start": "Start",
"stats": "Stats",
"stop": "Stop",
"stopped": "Stopped",
"success": "Success",
"supportFmtArgs": "The following formatting parameters are supported:",
"suspend": "Suspend",

View File

@@ -188,6 +188,7 @@
"result": "Résultat",
"rotateAngel": "Angle de rotation",
"run": "Exécuter",
"running": "en cours d'exécution",
"save": "Enregistrer",
"saved": "Enregistré",
"second": "s",
@@ -217,6 +218,7 @@
"start": "Démarrer",
"stats": "Statistiques",
"stop": "Arrêter",
"stopped": "interrompue",
"success": "Succès",
"supportFmtArgs": "Les paramètres de formatage suivants sont pris en charge:",
"suspend": "Suspendre",

View File

@@ -188,6 +188,7 @@
"result": "Hasil",
"rotateAngel": "Sudut rotasi",
"run": "Berlari",
"running": "berlari",
"save": "Menyimpan",
"saved": "Diselamatkan",
"second": "S",
@@ -217,6 +218,7 @@
"start": "Awal",
"stats": "Statistik",
"stop": "Berhenti",
"stopped": "dihentikan",
"success": "Kesuksesan",
"supportFmtArgs": "Parameter pemformatan berikut ini didukung:",
"suspend": "Suspend",

View File

@@ -188,6 +188,7 @@
"result": "结果",
"rotateAngel": "旋转角度",
"run": "运行",
"running": "运行中",
"save": "保存",
"saved": "已保存",
"second": "秒",
@@ -217,6 +218,7 @@
"start": "开始",
"stats": "统计",
"stop": "停止",
"stopped": "已停止",
"success": "成功",
"supportFmtArgs": "支持以下格式化参数:",
"suspend": "挂起",

View File

@@ -188,6 +188,7 @@
"result": "結果",
"rotateAngel": "旋轉角度",
"run": "運行",
"running": "運作中",
"save": "保存",
"saved": "已保存",
"second": "秒",
@@ -217,6 +218,7 @@
"start": "開始",
"stats": "統計",
"stop": "停止",
"stopped": "已停止",
"success": "成功",
"supportFmtArgs": "支援以下格式化參數:",
"suspend": "挂起",

View File

@@ -123,17 +123,20 @@ class _ContainerPageState extends State<ContainerPage> {
_buildVersion(),
_buildPs(),
_buildImage(),
// ignore: unnecessary_cast
].map((e) => CardX(child: e) as Widget).toList();
items.add(
Row(
mainAxisAlignment: MainAxisAlignment.spaceAround,
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
_buildEditHost(),
_buildSwitchProvider(),
],
),
].map((e) => CardX(child: e));
);
return ListView(
padding: const EdgeInsets.all(7),
children: items.toList(),
padding: const EdgeInsets.only(left: 13, right: 13, top: 13, bottom: 37),
children: items,
);
}
@@ -209,7 +212,7 @@ class _ContainerPageState extends State<ContainerPage> {
return ListTile(
title: Text(item.name ?? l10n.unknown),
subtitle: Text(
item.image ?? l10n.unknown,
'${item.image ?? l10n.unknown} - ${item.running ? l10n.running : l10n.stopped}',
style: UIs.text13Grey,
),
trailing: _buildMoreBtn(item),