增加 armbian 头图

This commit is contained in:
Junyuan Feng
2022-11-05 21:58:05 +08:00
parent 7f1bd06422
commit c036b78708
12 changed files with 73 additions and 70 deletions

View File

@@ -2,9 +2,9 @@
class BuildData {
static const String name = "ServerBox";
static const int build = 154;
static const int build = 155;
static const String engine =
"Flutter 3.3.4 • channel stable • https://github.com/flutter/flutter.git\nFramework • revision eb6d86ee27 (2 weeks ago) • 2022-10-04 22:31:45 -0700\nEngine • revision c08d7d5efc\nTools • Dart 2.18.2 • DevTools 2.15.0\n";
static const String buildAt = "2022-10-21 17:29:42.809139";
static const int modifications = 9;
"Flutter 3.3.4 • channel stable • https://github.com/flutter/flutter.git\nFramework • revision eb6d86ee27 (4 weeks ago) • 2022-10-04 22:31:45 -0700\nEngine • revision c08d7d5efc\nTools • Dart 2.18.2 • DevTools 2.15.0\n";
static const String buildAt = "2022-11-05 21:49:47.105329";
static const int modifications = 0;
}

View File

@@ -1,5 +1,3 @@
import 'package:toolbox/data/model/server/linux_icon.dart';
final linuxIcons = LinuxIcons([
'ubuntu',
'arch',
@@ -8,5 +6,21 @@ final linuxIcons = LinuxIcons([
'fedora',
'opensuse',
'kali',
'wrt'
'wrt',
'armbian'
]);
class LinuxIcons {
List<String> db;
LinuxIcons(this.db);
String? search(String sysVer) {
for (var item in db) {
if (sysVer.toLowerCase().contains(item)) {
return 'assets/linux/$item.png';
}
}
return null;
}
}