feat: search media_ft

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-01-09 22:07:49 +08:00
parent 57043166a9
commit 794fb9c7e4
6 changed files with 17 additions and 14 deletions

View File

@@ -1,9 +1,11 @@
import 'package:PiliPlus/models/common/search_type.dart';
import 'package:get/get.dart';
class SearchResultController extends GetxController {
String? keyword;
RxList<int> count = List.generate(5, (_) => -1).toList().obs;
RxList<int> count =
List.generate(SearchType.values.length, (_) => -1).toList().obs;
@override
void onInit() {

View File

@@ -56,7 +56,7 @@ class _SearchResultPageState extends State<SearchResultPage>
),
),
title: GestureDetector(
onTap: () => Get.back(),
onTap: Get.back,
child: SizedBox(
width: double.infinity,
child: Text(
@@ -110,7 +110,7 @@ class _SearchResultPageState extends State<SearchResultPage>
onTap: (index) {
if (_tabController.indexIsChanging.not) {
Get.find<SearchPanelController>(
tag: SearchType.values[index].type +
tag: SearchType.values[index].name +
_searchResultController.keyword!)
.animateToTop();
}