mirror of
https://github.com/lollipopkit/flutter_server_box.git
synced 2025-12-17 23:34:24 +01:00
Improve UI. Rounded Card.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
3
lib/data/res/padding.dart
Normal file
3
lib/data/res/padding.dart
Normal file
@@ -0,0 +1,3 @@
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
const roundRectCardPadding = EdgeInsets.symmetric(horizontal: 17);
|
||||
Reference in New Issue
Block a user