mirror of
https://github.com/lollipopkit/flutter_server_box.git
synced 2025-12-17 15:24:35 +01:00
fix: ssh page displays the CustomAppBar on desktop
This commit is contained in:
@@ -19,12 +19,12 @@ final class _AppBar extends CustomAppBar {
|
|||||||
);
|
);
|
||||||
return selectIndex.listenVal(
|
return selectIndex.listenVal(
|
||||||
(idx) {
|
(idx) {
|
||||||
|
if (isDesktop) return super.build(context);
|
||||||
|
|
||||||
if (idx == AppTab.ssh.index) {
|
if (idx == AppTab.ssh.index) {
|
||||||
return placeholder;
|
return placeholder;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isDesktop) return super.build(context);
|
|
||||||
|
|
||||||
return ValBuilder(
|
return ValBuilder(
|
||||||
listenable: landscape,
|
listenable: landscape,
|
||||||
builder: (ls) {
|
builder: (ls) {
|
||||||
|
|||||||
Reference in New Issue
Block a user