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

@@ -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,
),
],
),
);