mirror of
https://github.com/lollipopkit/flutter_server_box.git
synced 2025-12-17 23:34:24 +01:00
Change app name
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user