mirror of
https://github.com/lollipopkit/flutter_server_box.git
synced 2025-12-17 07:14:28 +01:00
new: ssh tab
This commit is contained in:
@@ -1,12 +1,13 @@
|
||||
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';
|
||||
|
||||
enum AppTab {
|
||||
server,
|
||||
ssh,
|
||||
snippet,
|
||||
ping;
|
||||
;
|
||||
|
||||
Widget get page {
|
||||
switch (this) {
|
||||
@@ -14,8 +15,8 @@ enum AppTab {
|
||||
return const ServerPage();
|
||||
case snippet:
|
||||
return const SnippetListPage();
|
||||
case ping:
|
||||
return const PingPage();
|
||||
case ssh:
|
||||
return const SSHTabPage();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user