fix: 搜索页面时长筛选、快速回顶
This commit is contained in:
@ -90,7 +90,7 @@ class SearchVideoPanel extends StatelessWidget {
|
|||||||
style: ButtonStyle(
|
style: ButtonStyle(
|
||||||
padding: MaterialStateProperty.all(EdgeInsets.zero),
|
padding: MaterialStateProperty.all(EdgeInsets.zero),
|
||||||
),
|
),
|
||||||
onPressed: () => controller.onShowFilterDialog(),
|
onPressed: () => controller.onShowFilterDialog(ctr),
|
||||||
icon: Icon(
|
icon: Icon(
|
||||||
Icons.filter_list_outlined,
|
Icons.filter_list_outlined,
|
||||||
size: 18,
|
size: 18,
|
||||||
@ -175,7 +175,7 @@ class VideoPanelController extends GetxController {
|
|||||||
super.onInit();
|
super.onInit();
|
||||||
}
|
}
|
||||||
|
|
||||||
onShowFilterDialog() {
|
onShowFilterDialog(searchPanelCtr) {
|
||||||
SmartDialog.show(
|
SmartDialog.show(
|
||||||
animationType: SmartAnimationType.centerFade_otherSlide,
|
animationType: SmartAnimationType.centerFade_otherSlide,
|
||||||
builder: (BuildContext context) {
|
builder: (BuildContext context) {
|
||||||
@ -199,7 +199,8 @@ class VideoPanelController extends GetxController {
|
|||||||
SmartDialog.dismiss();
|
SmartDialog.dismiss();
|
||||||
SmartDialog.showToast("「${i['label']}」的筛选结果");
|
SmartDialog.showToast("「${i['label']}」的筛选结果");
|
||||||
SearchPanelController ctr =
|
SearchPanelController ctr =
|
||||||
Get.find<SearchPanelController>(tag: 'video');
|
Get.find<SearchPanelController>(
|
||||||
|
tag: 'video${searchPanelCtr.keyword!}');
|
||||||
ctr.duration.value = i['value'];
|
ctr.duration.value = i['value'];
|
||||||
SmartDialog.showLoading(msg: 'loooad');
|
SmartDialog.showLoading(msg: 'loooad');
|
||||||
await ctr.onRefresh();
|
await ctr.onRefresh();
|
||||||
|
|||||||
@ -86,7 +86,8 @@ class _SearchResultPageState extends State<SearchResultPage>
|
|||||||
onTap: (index) {
|
onTap: (index) {
|
||||||
if (index == _searchResultController!.tabIndex) {
|
if (index == _searchResultController!.tabIndex) {
|
||||||
Get.find<SearchPanelController>(
|
Get.find<SearchPanelController>(
|
||||||
tag: SearchType.values[index].type)
|
tag: SearchType.values[index].type +
|
||||||
|
_searchResultController!.keyword!)
|
||||||
.animateToTop();
|
.animateToTop();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user