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

View File

@@ -2,8 +2,8 @@
class BuildData {
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 buildAt = "2022-01-11 13:16:48.400673";
static const int modifications = 2;
static const String buildAt = "2022-01-11 13:31:16.586591";
static const int modifications = 3;
}

View File

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

View File

@@ -183,7 +183,13 @@ class _ServerPageState extends State<ServerPage>
case ServerConnectionState.connecting:
return 'Connecting...';
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:
return 'Unknown State';
}

View File

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

View File

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

View File

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