mirror of
https://github.com/lollipopkit/flutter_server_box.git
synced 2025-12-17 23:34:24 +01:00
opt.: servers list -> map
This commit is contained in:
@@ -48,7 +48,7 @@ class _DockerManagePageState extends State<DockerManagePage> {
|
||||
@override
|
||||
void initState() {
|
||||
super.initState();
|
||||
final client = locator<ServerProvider>().getServer(widget.spi.id).client;
|
||||
final client = locator<ServerProvider>().servers[widget.spi.id]?.client;
|
||||
if (client == null) {
|
||||
showSnackBar(context, Text(_s.noClient));
|
||||
context.pop();
|
||||
|
||||
Reference in New Issue
Block a user