Change app name

This commit is contained in:
Junyuan Feng
2022-01-11 13:34:15 +08:00
parent a58119ef54
commit db3ec38a0f
7 changed files with 16 additions and 9 deletions

View File

@@ -1,4 +1,5 @@
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:toolbox/data/res/build_data.dart';
import 'package:toolbox/data/store/setting.dart'; import 'package:toolbox/data/store/setting.dart';
import 'package:toolbox/locator.dart'; import 'package:toolbox/locator.dart';
import 'package:toolbox/view/page/home.dart'; import 'package:toolbox/view/page/home.dart';
@@ -29,7 +30,7 @@ class MyApp extends StatelessWidget {
final primaryColor = Color(value); final primaryColor = Color(value);
final textStyle = TextStyle(color: primaryColor); final textStyle = TextStyle(color: primaryColor);
return MaterialApp( return MaterialApp(
title: 'ToolBox', title: BuildData.name,
debugShowCheckedModeBanner: false, debugShowCheckedModeBanner: false,
theme: ThemeData( theme: ThemeData(
primaryColor: primaryColor, primaryColor: primaryColor,

View File

@@ -2,8 +2,8 @@
class BuildData { class BuildData {
static const String name = "ToolBox"; static const String name = "ToolBox";
static const int build = 81; static const int build = 82;
static const String engine = "Flutter 2.8.1 • channel stable • https://github.com/flutter/flutter.git\nFramework • revision 77d935af4d (4 weeks ago) • 2021-12-16 08:37:33 -0800\nEngine • revision 890a5fca2e\nTools • Dart 2.15.1\n"; static const String engine = "Flutter 2.8.1 • channel stable • https://github.com/flutter/flutter.git\nFramework • revision 77d935af4d (4 weeks ago) • 2021-12-16 08:37:33 -0800\nEngine • revision 890a5fca2e\nTools • Dart 2.15.1\n";
static const String buildAt = "2022-01-11 13:16:48.400673"; static const String buildAt = "2022-01-11 13:31:16.586591";
static const int modifications = 2; static const int modifications = 3;
} }

View File

@@ -71,7 +71,7 @@ class _MyHomePageState extends State<MyHomePage>
title: GestureDetector( title: GestureDetector(
onLongPress: () => onLongPress: () =>
AppRoute(const DebugPage(), 'Debug Page').go(context), AppRoute(const DebugPage(), 'Debug Page').go(context),
child: const Text('ToolBox'), child: const Text(BuildData.name),
), ),
bottom: TabBar( bottom: TabBar(
indicatorColor: widget.primaryColor, indicatorColor: widget.primaryColor,

View File

@@ -183,7 +183,13 @@ class _ServerPageState extends State<ServerPage>
case ServerConnectionState.connecting: case ServerConnectionState.connecting:
return 'Connecting...'; return 'Connecting...';
case ServerConnectionState.failed: case ServerConnectionState.failed:
return failedInfo ?? 'Failed'; if (failedInfo == null) {
return 'Failed';
}
if (failedInfo.contains('encypted')) {
return 'Please "save" this private key again.';
}
return failedInfo;
default: default:
return 'Unknown State'; return 'Unknown State';
} }

View File

@@ -4,7 +4,7 @@
import 'dart:convert'; import 'dart:convert';
import 'dart:io'; import 'dart:io';
const appName = 'ToolBox'; const appName = 'ServerBox';
Future<int> getGitCommitCount() async { Future<int> getGitCommitCount() async {
final result = await Process.run('git', ['log', '--oneline']); final result = await Process.run('git', ['log', '--oneline']);

View File

@@ -123,7 +123,7 @@ packages:
name: dartssh2 name: dartssh2
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "2.2.0" version: "2.3.0-pre"
dio: dio:
dependency: "direct main" dependency: "direct main"
description: description:

View File

@@ -42,7 +42,7 @@ dependencies:
git: git:
url: https://github.com/Countly/countly-sdk-flutter-bridge.git url: https://github.com/Countly/countly-sdk-flutter-bridge.git
ref: master ref: master
dartssh2: ^2.2.0 dartssh2: ^2.3.0-pre
logging: ^1.0.2 logging: ^1.0.2
flutter_material_color_picker: ^1.1.0+2 flutter_material_color_picker: ^1.1.0+2
circle_chart: circle_chart: