mod: 推荐、搜索页添加时间,修复视频搜索页无法筛选和回顶

This commit is contained in:
orz12
2024-01-20 21:05:01 +08:00
parent 791eed8a01
commit 932be48125
4 changed files with 56 additions and 19 deletions

View File

@ -43,7 +43,7 @@ class _SearchPanelState extends State<SearchPanel>
keyword: widget.keyword,
searchType: widget.searchType,
),
tag: widget.searchType!.type + widget.keyword!,
tag: widget.searchType!.type,
);
scrollController = _searchPanelController.scrollController;
scrollController.addListener(() async {

View File

@ -35,7 +35,7 @@ class SearchVideoPanel extends StatelessWidget {
padding: index == 0
? const EdgeInsets.only(top: 2)
: EdgeInsets.zero,
child: VideoCardH(videoItem: i),
child: VideoCardH(videoItem: i, showPubdate: true),
);
},
),
@ -70,7 +70,7 @@ class SearchVideoPanel extends StatelessWidget {
controller.selectedType.value = i['type'];
ctr!.order.value =
i['type'].toString().split('.').last;
SmartDialog.showLoading(msg: 'loooad');
SmartDialog.showLoading(msg: 'loading');
await ctr!.onRefresh();
SmartDialog.dismiss();
},
@ -201,7 +201,7 @@ class VideoPanelController extends GetxController {
SearchPanelController ctr =
Get.find<SearchPanelController>(tag: 'video');
ctr.duration.value = i['value'];
SmartDialog.showLoading(msg: 'loooad');
SmartDialog.showLoading(msg: 'loading');
await ctr.onRefresh();
SmartDialog.dismiss();
},