mod: lint

mod: tweaks

opt: publish page

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-05-04 11:37:13 +08:00
parent 2cfad80214
commit caa58e9d7d
313 changed files with 2751 additions and 2789 deletions

View File

@@ -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,