opt. for performance

This commit is contained in:
lollipopkit
2023-06-05 17:51:52 +08:00
parent 378baf589a
commit 7b1c1b9a5a
15 changed files with 68 additions and 126 deletions

View File

@@ -1 +1,21 @@
enum AppTab { servers, snippet, ping }
import 'package:flutter/material.dart';
import 'package:toolbox/view/page/ping.dart';
import 'package:toolbox/view/page/server/tab.dart';
import 'package:toolbox/view/page/snippet/list.dart';
enum AppTab {
server,
snippet,
ping;
Widget get page {
switch (this) {
case server:
return const ServerPage();
case snippet:
return const SnippetListPage();
case ping:
return const PingPage();
}
}
}

View File

@@ -2,8 +2,8 @@
class BuildData {
static const String name = "ServerBox";
static const int build = 347;
static const int build = 353;
static const String engine = "3.10.3";
static const String buildAt = "2023-06-04 22:37:44.679072";
static const int modifications = 7;
static const String buildAt = "2023-06-05 17:15:25.298942";
static const int modifications = 6;
}

View File

@@ -2,7 +2,7 @@ const backendUrl = 'https://res.lolli.tech';
const baseUrl = '$backendUrl/serverbox';
const joinQQGroupUrl = 'https://jq.qq.com/?_wv=1027&k=G0hUmPAq';
const myGithub = 'https://github.com/lollipopkit';
const issueUrl = '$myGithub/flutter_server_box/issues';
const appHelpUrl = '$myGithub/flutter_server_box#-help';
// Thanks
const thanksMap = {

View File

@@ -24,14 +24,6 @@ class SettingStore extends PersistentStore {
StoreProperty<int> get storeVersion =>
property('storeVersion', defaultValue: 0);
// Show logo on server detail page
StoreProperty<bool> get showDistLogo =>
property('showDistLogo', defaultValue: true);
// First time to use SSH term
StoreProperty<bool> get firstTimeUseSshTerm =>
property('firstTimeUseSshTerm', defaultValue: true);
StoreProperty<int> get termColorIdx =>
property('termColorIdx', defaultValue: 0);