new & opt

new: Flutter 3.7.3
opt: for `ping` page
This commit is contained in:
lollipopkit
2023-02-13 17:51:36 +08:00
parent ba44649ce1
commit 9c3b822311
8 changed files with 21 additions and 19 deletions

View File

@@ -3,10 +3,10 @@
"files.watcherExclude": {
"**/.fvm": true
},
"search.exclude": {
"**/.fvm": true
},
"git.ignoredRepositories": [
".fvm"
],
"search.exclude": {
"**/.fvm": true
}
}

File diff suppressed because one or more lines are too long

View File

@@ -356,7 +356,7 @@
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CLANG_ENABLE_MODULES = YES;
CURRENT_PROJECT_VERSION = 216;
CURRENT_PROJECT_VERSION = 217;
DEVELOPMENT_TEAM = BA88US33G6;
ENABLE_BITCODE = NO;
INFOPLIST_FILE = Runner/Info.plist;
@@ -364,7 +364,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 1.0.216;
MARKETING_VERSION = 1.0.217;
PRODUCT_BUNDLE_IDENTIFIER = com.lollipopkit.toolbox;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
@@ -486,7 +486,7 @@
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CLANG_ENABLE_MODULES = YES;
CURRENT_PROJECT_VERSION = 216;
CURRENT_PROJECT_VERSION = 217;
DEVELOPMENT_TEAM = BA88US33G6;
ENABLE_BITCODE = NO;
INFOPLIST_FILE = Runner/Info.plist;
@@ -494,7 +494,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 1.0.216;
MARKETING_VERSION = 1.0.217;
PRODUCT_BUNDLE_IDENTIFIER = com.lollipopkit.toolbox;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
@@ -510,7 +510,7 @@
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CLANG_ENABLE_MODULES = YES;
CURRENT_PROJECT_VERSION = 216;
CURRENT_PROJECT_VERSION = 217;
DEVELOPMENT_TEAM = BA88US33G6;
ENABLE_BITCODE = NO;
INFOPLIST_FILE = Runner/Info.plist;
@@ -518,7 +518,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 1.0.216;
MARKETING_VERSION = 1.0.217;
PRODUCT_BUNDLE_IDENTIFIER = com.lollipopkit.toolbox;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";

File diff suppressed because one or more lines are too long

View File

@@ -176,7 +176,7 @@ class ServerProvider extends BusyProvider {
if (raw.isEmpty || segments.length == 1) {
s.cs = ServerState.failed;
if (s.status.failedInfo == null || s.status.failedInfo!.isEmpty) {
s.status.failedInfo = 'No data received';
s.status.failedInfo = 'Seperate segments failed, raw:\n$raw';
}
notifyListeners();
return;

View File

@@ -2,9 +2,9 @@
class BuildData {
static const String name = "ServerBox";
static const int build = 216;
static const int build = 217;
static const String engine =
"Flutter 3.7.1 • channel stable • https://github.com/flutter/flutter.git\nFramework • revision 7048ed95a5 (5 days ago) • 2023-02-01 09:07:31 -0800\nEngine • revision 800594f1f4\nTools • Dart 2.19.1 • DevTools 2.20.1\n";
static const String buildAt = "2023-02-06 18:02:57.320716";
static const int modifications = 1;
"Flutter 3.7.2 • channel stable • https://github.com/flutter/flutter.git\nFramework • revision 32fb2f948e (5 days ago) • 2023-02-08 07:30:10 -0800\nEngine • revision f40b73f8a4\nTools • Dart 2.19.2 • DevTools 2.20.1\n";
static const String buildAt = "2023-02-13 14:53:15.900258";
static const int modifications = 2;
}

View File

@@ -174,7 +174,9 @@ class _PingPageState extends State<PingPage>
@override
Future<FutureOr<void>> afterFirstLayout(BuildContext context) async {
await _serverProvider.loadLocalData();
await _serverProvider.refreshData();
if (_serverProvider.servers.isEmpty) {
await _serverProvider.loadLocalData();
await _serverProvider.refreshData();
}
}
}

View File

@@ -79,7 +79,7 @@ class _SettingPageState extends State<SettingPage> {
child: Center(
child: Text(
text,
style: textSize13,
style: TextStyle(color: primaryColor),
),
),
);