opt.: android only arm64 & ssh tab page

This commit is contained in:
lollipopkit
2023-12-02 00:21:07 +08:00
parent 90403b655b
commit fc0c9b3a49
14 changed files with 55 additions and 54 deletions

View File

@@ -581,9 +581,6 @@ class _ServerPageState extends State<ServerPage>
if (failedInfo == null) {
return l10n.serverTabFailed;
}
if (failedInfo.contains('encypted')) {
return l10n.serverTabPlzSave;
}
return failedInfo;
}
}

View File

@@ -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(),
);

View File

@@ -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,
);
}

View File

@@ -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);
},