mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
mod: lint
mod: tweaks opt: publish page Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -72,14 +72,15 @@ class HomeController extends GetxController
|
||||
return controller.onRefresh().catchError((e) => debugPrint(e.toString()));
|
||||
}
|
||||
|
||||
void setTabConfig() async {
|
||||
Future<void> setTabConfig() async {
|
||||
final defaultTabs = [...tabsConfig];
|
||||
final tabbarSort = GStorage.tabbarSort;
|
||||
defaultTabs.retainWhere(
|
||||
(item) => tabbarSort.contains((item['type'] as TabType).name));
|
||||
defaultTabs.sort((a, b) => tabbarSort
|
||||
.indexOf((a['type'] as TabType).name)
|
||||
.compareTo(tabbarSort.indexOf((b['type'] as TabType).name)));
|
||||
defaultTabs
|
||||
..retainWhere(
|
||||
(item) => tabbarSort.contains((item['type'] as TabType).name))
|
||||
..sort((a, b) => tabbarSort
|
||||
.indexOf((a['type'] as TabType).name)
|
||||
.compareTo(tabbarSort.indexOf((b['type'] as TabType).name)));
|
||||
|
||||
tabs = defaultTabs;
|
||||
|
||||
@@ -98,7 +99,7 @@ class HomeController extends GetxController
|
||||
super.dispose();
|
||||
}
|
||||
|
||||
void querySearchDefault() async {
|
||||
Future<void> querySearchDefault() async {
|
||||
try {
|
||||
var res = await Request().get(Api.searchDefault);
|
||||
if (res.data['code'] == 0) {
|
||||
@@ -107,7 +108,7 @@ class HomeController extends GetxController
|
||||
} catch (_) {}
|
||||
}
|
||||
|
||||
showUserInfoDialog(context) {
|
||||
void showUserInfoDialog(context) {
|
||||
feedBack();
|
||||
showDialog(
|
||||
context: context,
|
||||
|
||||
Reference in New Issue
Block a user