fix: 搜索条件筛选面板无法滚动

This commit is contained in:
guozhigq
2024-09-08 15:53:56 +08:00
parent 8fa2129610
commit 6a75f4ca2f

View File

@ -261,13 +261,16 @@ class VideoPanelController extends GetxController {
onShowFilterSheet(searchPanelCtr) { onShowFilterSheet(searchPanelCtr) {
showModalBottomSheet( showModalBottomSheet(
context: Get.context!, context: Get.context!,
isScrollControlled: true,
builder: (context) { builder: (context) {
return StatefulBuilder( return StatefulBuilder(
builder: (context, StateSetter setState) { builder: (context, StateSetter setState) {
return Container( return Padding(
color: Theme.of(Get.context!).colorScheme.surface, padding: EdgeInsets.only(
padding: const EdgeInsets.only(top: 12), top: 12, bottom: MediaQuery.of(context).padding.bottom + 20),
child: Column( child: Wrap(
children: [
Column(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
children: [ children: [
const ListTile( const ListTile(
@ -295,9 +298,10 @@ class VideoPanelController extends GetxController {
onSelect: (value) async { onSelect: (value) async {
currentTimeFilterval.value = i['value']; currentTimeFilterval.value = i['value'];
setState(() {}); setState(() {});
SmartDialog.showToast("${i['label']}」的筛选结果"); SmartDialog.showToast(
SearchPanelController ctr = "${i['label']}」的筛选结果");
Get.find<SearchPanelController>( SearchPanelController ctr = Get.find<
SearchPanelController>(
tag: 'video${searchPanelCtr.keyword!}'); tag: 'video${searchPanelCtr.keyword!}');
ctr.duration.value = i['value']; ctr.duration.value = i['value'];
Get.back(); Get.back();
@ -326,13 +330,14 @@ class VideoPanelController extends GetxController {
SearchText( SearchText(
searchText: i['label'], searchText: i['label'],
searchTextIdx: i['value'], searchTextIdx: i['value'],
isSelect: currentPartFilterval.value == i['value'], isSelect:
currentPartFilterval.value == i['value'],
onSelect: (value) async { onSelect: (value) async {
currentPartFilterval.value = i['value']; currentPartFilterval.value = i['value'];
setState(() {}); setState(() {});
SmartDialog.showToast("${i['label']}」的筛选结果"); SmartDialog.showToast("${i['label']}」的筛选结果");
SearchPanelController ctr = SearchPanelController ctr = Get.find<
Get.find<SearchPanelController>( SearchPanelController>(
tag: 'video${searchPanelCtr.keyword!}'); tag: 'video${searchPanelCtr.keyword!}');
ctr.tids.value = i['value']; ctr.tids.value = i['value'];
Get.back(); Get.back();
@ -347,6 +352,8 @@ class VideoPanelController extends GetxController {
) )
], ],
), ),
],
),
); );
}, },
); );