opt. for docker & apt

This commit is contained in:
lollipopkit
2022-12-10 23:14:55 +08:00
parent 62a1122174
commit 611518f790
22 changed files with 686 additions and 213 deletions

View File

@@ -2,9 +2,9 @@
class BuildData {
static const String name = "ServerBox";
static const int build = 165;
static const int build = 166;
static const String engine =
"Flutter 3.3.9 • channel stable • https://github.com/flutter/flutter.git\nFramework • revision b8f7f1f986 (12 days ago) • 2022-11-23 06:43:51 +0900\nEngine • revision 8f2221fbef\nTools • Dart 2.18.5 • DevTools 2.15.0\n";
static const String buildAt = "2022-12-04 21:41:26.055331";
static const int modifications = 1;
static const String buildAt = "2022-12-04 21:57:10.591121";
static const int modifications = 2;
}

28
lib/data/res/error.dart Normal file
View File

@@ -0,0 +1,28 @@
enum ErrFrom {
unknown,
apt,
docker,
sftp,
ssh,
}
abstract class Err<T> {
final ErrFrom from;
final T type;
final String? message;
Err({required this.from, required this.type, this.message});
}
enum DockerErrType {
unknown,
noClient,
notInstalled,
invalidVersion,
cmdNoPrefix
}
class DockerErr extends Err<DockerErrType> {
DockerErr({required DockerErrType type, String? message})
: super(from: ErrFrom.docker, type: type, message: message);
}