#15 support: select font

This commit is contained in:
lollipopkit
2023-03-21 13:15:36 +08:00
parent 89050daf4e
commit 27e7653587
16 changed files with 101 additions and 42 deletions

View File

@@ -47,10 +47,7 @@ class _DockerManagePageState extends State<DockerManagePage> {
@override
void initState() {
super.initState();
final client = locator<ServerProvider>()
.servers
.firstWhere((element) => element.spi == widget.spi)
.client;
final client = locator<ServerProvider>().getServer(widget.spi.id).client;
if (client == null) {
showSnackBar(context, Text(_s.noClient));
Navigator.of(context).pop();