Improve UI. Rounded Card.

This commit is contained in:
Junyuan Feng
2022-02-04 18:52:35 +08:00
parent 026d203608
commit 1bd43829bb
16 changed files with 271 additions and 100 deletions

View File

@@ -9,6 +9,5 @@ class ServerInfo {
SSHClient? client;
ServerConnectionState connectionState;
ServerInfo(
this.info, this.status, this.client, this.connectionState);
ServerInfo(this.info, this.status, this.client, this.connectionState);
}

View File

@@ -324,8 +324,11 @@ class ServerProvider extends BusyProvider {
notifyListeners();
}
Future<String?> runSnippet(int idx, Snippet snippet) async {
final result = await _servers[idx].client!.run(snippet.script);
Future<String?> runSnippet(ServerPrivateInfo spi, Snippet snippet) async {
final result = await _servers
.firstWhere((element) => element.info == spi)
.client!
.run(snippet.script);
return utf8.decode(result);
}
}

View File

@@ -2,8 +2,8 @@
class BuildData {
static const String name = "ServerBox";
static const int build = 87;
static const int build = 88;
static const String engine = "Flutter 2.8.1 • channel stable • https://github.com/flutter/flutter.git\nFramework • revision 77d935af4d (7 weeks ago) • 2021-12-16 08:37:33 -0800\nEngine • revision 890a5fca2e\nTools • Dart 2.15.1\n";
static const String buildAt = "2022-02-02 13:20:22.346643";
static const int modifications = 8;
static const String buildAt = "2022-02-04 18:44:51.481488";
static const int modifications = 16;
}

View File

@@ -0,0 +1,3 @@
import 'package:flutter/material.dart';
const roundRectCardPadding = EdgeInsets.symmetric(horizontal: 17);