-
-
Notifications
You must be signed in to change notification settings - Fork 331
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8693ce0
commit 7908129
Showing
8 changed files
with
195 additions
and
101 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,22 @@ | ||
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) { | ||
case server: | ||
return const ServerPage(); | ||
case snippet: | ||
return const SnippetListPage(); | ||
case ping: | ||
return const PingPage(); | ||
case ssh: | ||
return const SSHTabPage(); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.