opt: webview to video

Closes #209

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-02-08 21:09:59 +08:00
parent 588a06bece
commit 9a3766e7b7
10 changed files with 54 additions and 72 deletions

View File

@@ -2,16 +2,8 @@ import 'package:PiliPlus/models/common/search_type.dart';
import 'package:get/get.dart';
class SearchResultController extends GetxController {
String? keyword;
String keyword = Get.parameters['keyword'] ?? '';
RxList<int> count =
List.generate(SearchType.values.length, (_) => -1).toList().obs;
@override
void onInit() {
super.onInit();
if (Get.parameters.keys.isNotEmpty) {
keyword = Get.parameters['keyword'];
}
}
}

View File

@@ -60,7 +60,7 @@ class _SearchResultPageState extends State<SearchResultPage>
child: SizedBox(
width: double.infinity,
child: Text(
'${_searchResultController.keyword}',
_searchResultController.keyword,
style: Theme.of(context).textTheme.titleMedium,
),
),
@@ -110,7 +110,7 @@ class _SearchResultPageState extends State<SearchResultPage>
if (_tabController.indexIsChanging.not) {
Get.find<SearchPanelController>(
tag: SearchType.values[index].name +
_searchResultController.keyword!)
_searchResultController.keyword)
.animateToTop();
}
},