Update screenshots.
35
lib/data/model/app/menu_item.dart
Normal file
@@ -0,0 +1,35 @@
|
|||||||
|
import 'package:flutter/material.dart';
|
||||||
|
|
||||||
|
class MenuItem {
|
||||||
|
final String text;
|
||||||
|
final IconData icon;
|
||||||
|
|
||||||
|
const MenuItem({
|
||||||
|
required this.text,
|
||||||
|
required this.icon,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
class MenuItems {
|
||||||
|
static const List<MenuItem> firstItems = [sftp, snippet, apt];
|
||||||
|
static const List<MenuItem> secondItems = [edit];
|
||||||
|
|
||||||
|
static const sftp = MenuItem(text: 'SFTP', icon: Icons.file_present);
|
||||||
|
static const snippet = MenuItem(text: 'Snippet', icon: Icons.label);
|
||||||
|
static const apt = MenuItem(text: 'Apt', icon: Icons.system_security_update);
|
||||||
|
static const edit = MenuItem(text: 'Edit', icon: Icons.settings);
|
||||||
|
|
||||||
|
static Widget buildItem(MenuItem item) {
|
||||||
|
return Row(
|
||||||
|
children: [
|
||||||
|
Icon(item.icon),
|
||||||
|
const SizedBox(
|
||||||
|
width: 10,
|
||||||
|
),
|
||||||
|
Text(
|
||||||
|
item.text,
|
||||||
|
),
|
||||||
|
],
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -2,9 +2,9 @@
|
|||||||
|
|
||||||
class BuildData {
|
class BuildData {
|
||||||
static const String name = "ServerBox";
|
static const String name = "ServerBox";
|
||||||
static const int build = 93;
|
static const int build = 94;
|
||||||
static const String engine =
|
static const String engine =
|
||||||
"Flutter 2.10.0 • channel stable • https://github.com/flutter/flutter.git\nFramework • revision 5f105a6ca7 (7 days ago) • 2022-02-01 14:15:42 -0800\nEngine • revision 776efd2034\nTools • Dart 2.16.0 • DevTools 2.9.2\n";
|
"Flutter 2.10.0 • channel stable • https://github.com/flutter/flutter.git\nFramework • revision 5f105a6ca7 (7 days ago) • 2022-02-01 14:15:42 -0800\nEngine • revision 776efd2034\nTools • Dart 2.16.0 • DevTools 2.9.2\n";
|
||||||
static const String buildAt = "2022-02-08 20:57:54.707031";
|
static const String buildAt = "2022-02-08 21:12:52.441728";
|
||||||
static const int modifications = 9;
|
static const int modifications = 0;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ import 'package:toolbox/data/model/app/navigation_item.dart';
|
|||||||
|
|
||||||
final List<String> tabs = ['Servers', 'En/Decode', 'Ping'];
|
final List<String> tabs = ['Servers', 'En/Decode', 'Ping'];
|
||||||
final List<NavigationItem> tabItems = [
|
final List<NavigationItem> tabItems = [
|
||||||
NavigationItem(Icons.computer, 'Server'),
|
NavigationItem(Icons.computer, 'Server'),
|
||||||
NavigationItem(Icons.code, 'Convert'),
|
NavigationItem(Icons.code, 'Convert'),
|
||||||
NavigationItem(Icons.network_check, 'Ping'),
|
NavigationItem(Icons.network_check, 'Ping'),
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -8,6 +8,7 @@ import 'package:provider/provider.dart';
|
|||||||
import 'package:pull_to_refresh/pull_to_refresh.dart';
|
import 'package:pull_to_refresh/pull_to_refresh.dart';
|
||||||
import 'package:toolbox/core/route.dart';
|
import 'package:toolbox/core/route.dart';
|
||||||
import 'package:toolbox/core/utils.dart';
|
import 'package:toolbox/core/utils.dart';
|
||||||
|
import 'package:toolbox/data/model/app/menu_item.dart';
|
||||||
import 'package:toolbox/data/model/server/server.dart';
|
import 'package:toolbox/data/model/server/server.dart';
|
||||||
import 'package:toolbox/data/model/server/server_connection_state.dart';
|
import 'package:toolbox/data/model/server/server_connection_state.dart';
|
||||||
import 'package:toolbox/data/model/server/server_private_info.dart';
|
import 'package:toolbox/data/model/server/server_private_info.dart';
|
||||||
@@ -385,37 +386,3 @@ class _ServerPageState extends State<ServerPage>
|
|||||||
_serverProvider.startAutoRefresh();
|
_serverProvider.startAutoRefresh();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
class MenuItem {
|
|
||||||
final String text;
|
|
||||||
final IconData icon;
|
|
||||||
|
|
||||||
const MenuItem({
|
|
||||||
required this.text,
|
|
||||||
required this.icon,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
class MenuItems {
|
|
||||||
static const List<MenuItem> firstItems = [sftp, snippet, apt];
|
|
||||||
static const List<MenuItem> secondItems = [edit];
|
|
||||||
|
|
||||||
static const sftp = MenuItem(text: 'SFTP', icon: Icons.file_present);
|
|
||||||
static const snippet = MenuItem(text: 'Snippet', icon: Icons.label);
|
|
||||||
static const apt = MenuItem(text: 'Apt', icon: Icons.system_security_update);
|
|
||||||
static const edit = MenuItem(text: 'Edit', icon: Icons.settings);
|
|
||||||
|
|
||||||
static Widget buildItem(MenuItem item) {
|
|
||||||
return Row(
|
|
||||||
children: [
|
|
||||||
Icon(item.icon),
|
|
||||||
const SizedBox(
|
|
||||||
width: 10,
|
|
||||||
),
|
|
||||||
Text(
|
|
||||||
item.text,
|
|
||||||
),
|
|
||||||
],
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -335,6 +335,13 @@ packages:
|
|||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "0.12.11"
|
version: "0.12.11"
|
||||||
|
material_color_utilities:
|
||||||
|
dependency: transitive
|
||||||
|
description:
|
||||||
|
name: material_color_utilities
|
||||||
|
url: "https://pub.dartlang.org"
|
||||||
|
source: hosted
|
||||||
|
version: "0.1.3"
|
||||||
meta:
|
meta:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
@@ -521,7 +528,7 @@ packages:
|
|||||||
name: test_api
|
name: test_api
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "0.4.3"
|
version: "0.4.8"
|
||||||
typed_data:
|
typed_data:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 180 KiB After Width: | Height: | Size: 178 KiB |
|
Before Width: | Height: | Size: 199 KiB After Width: | Height: | Size: 180 KiB |
|
Before Width: | Height: | Size: 377 KiB After Width: | Height: | Size: 316 KiB |
|
Before Width: | Height: | Size: 340 KiB After Width: | Height: | Size: 332 KiB |