Skip to content

Commit

Permalink
new: add back ping
Browse files Browse the repository at this point in the history
  • Loading branch information
lollipopkit committed Nov 22, 2023
1 parent d1d11e7 commit d74819b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/data/model/app/tab.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
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';
import 'package:toolbox/view/page/ssh/tab.dart';
Expand All @@ -7,6 +8,7 @@ enum AppTab {
server,
ssh,
snippet,
ping,
;

Widget get page {
Expand All @@ -17,6 +19,8 @@ enum AppTab {
return const SnippetListPage();
case ssh:
return const SSHTabPage();
case ping:
return const PingPage();
}
}
}
5 changes: 5 additions & 0 deletions lib/view/page/home.dart
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,11 @@ class _HomePageState extends State<HomePage>
label: l10n.snippet,
selectedIcon: const Icon(Icons.snippet_folder),
),
const NavigationDestination(
icon: Icon(Icons.network_check_outlined),
label: 'Ping',
selectedIcon: Icon(Icons.network_check),
),
],
);
}
Expand Down

0 comments on commit d74819b

Please sign in to comment.