mirror of
https://github.com/lollipopkit/flutter_server_box.git
synced 2026-02-12 03:04:45 +01:00
opt.: android only arm64 & ssh tab page
This commit is contained in:
@@ -581,9 +581,6 @@ class _ServerPageState extends State<ServerPage>
|
||||
if (failedInfo == null) {
|
||||
return l10n.serverTabFailed;
|
||||
}
|
||||
if (failedInfo.contains('encypted')) {
|
||||
return l10n.serverTabPlzSave;
|
||||
}
|
||||
return failedInfo;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -26,7 +26,7 @@ class _ServerDetailOrderPageState extends State<ServerDetailOrderPage> {
|
||||
Widget build(BuildContext context) {
|
||||
return Scaffold(
|
||||
appBar: CustomAppBar(
|
||||
title: Text(l10n.serverOrder),
|
||||
title: Text(l10n.serverDetailOrder),
|
||||
),
|
||||
body: _buildBody(),
|
||||
);
|
||||
|
||||
@@ -41,8 +41,7 @@ class _ServerOrderPageState extends State<ServerOrderPage> {
|
||||
}),
|
||||
padding: const EdgeInsets.symmetric(horizontal: 7, vertical: 3),
|
||||
buildDefaultDragHandles: false,
|
||||
itemBuilder: (_, index) =>
|
||||
_buildItem(index, Pros.server.serverOrder[index]),
|
||||
itemBuilder: (_, idx) => _buildItem(idx, Pros.server.serverOrder[idx]),
|
||||
itemCount: Pros.server.serverOrder.length,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -20,7 +20,6 @@ class _SSHTabPageState extends State<SSHTabPage>
|
||||
late final _tabIds = <String, Widget>{
|
||||
l10n.add: _buildAddPage(),
|
||||
};
|
||||
final _tabKeys = <String, GlobalKey>{};
|
||||
late var _tabController = TabController(
|
||||
length: _tabIds.length,
|
||||
vsync: this,
|
||||
@@ -34,6 +33,7 @@ class _SSHTabPageState extends State<SSHTabPage>
|
||||
controller: _tabController,
|
||||
tabs: _tabIds.keys.map(_buildTabItem).toList(),
|
||||
isScrollable: true,
|
||||
tabAlignment: TabAlignment.start,
|
||||
dividerColor: Colors.transparent,
|
||||
),
|
||||
body: _buildBody(),
|
||||
@@ -75,7 +75,6 @@ class _SSHTabPageState extends State<SSHTabPage>
|
||||
}
|
||||
_tabIds.remove(e);
|
||||
_refreshTabs();
|
||||
//_tabKeys[e]?.currentState?.dispose();
|
||||
},
|
||||
),
|
||||
],
|
||||
@@ -107,7 +106,6 @@ class _SSHTabPageState extends State<SSHTabPage>
|
||||
spi: spi,
|
||||
pop: false,
|
||||
);
|
||||
_tabKeys[name] = key;
|
||||
_refreshTabs();
|
||||
_tabController.animateTo(_tabIds.length - 1);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user