mirror of
https://github.com/lollipopkit/flutter_server_box.git
synced 2025-12-17 23:34:24 +01:00
#40 new: docker container restart
This commit is contained in:
@@ -447,8 +447,11 @@ class _DockerManagePageState extends State<DockerManagePage> {
|
||||
(item) {
|
||||
return ListTile(
|
||||
title: Text(item.name),
|
||||
subtitle: Text('${item.image} - ${item.status}',
|
||||
style: grey.copyWith(fontSize: 11)),
|
||||
isThreeLine: true,
|
||||
subtitle: Text(
|
||||
'${item.image}\n${item.status}',
|
||||
style: textSize13Grey,
|
||||
),
|
||||
trailing: _buildMoreBtn(item, _docker.isBusy),
|
||||
);
|
||||
},
|
||||
@@ -477,6 +480,10 @@ class _DockerManagePageState extends State<DockerManagePage> {
|
||||
value: DockerMenuItems.rm,
|
||||
child: DockerMenuItems.rm.build(_s),
|
||||
),
|
||||
PopupMenuItem<DropdownBtnItem>(
|
||||
value: DockerMenuItems.restart,
|
||||
child: DockerMenuItems.restart.build(_s),
|
||||
),
|
||||
],
|
||||
onSelected: (value) {
|
||||
if (busy) {
|
||||
|
||||
Reference in New Issue
Block a user