mirror of
https://github.com/lollipopkit/flutter_server_box.git
synced 2025-12-17 23:34:24 +01:00
opt. for performance
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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 = {
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user