Browse Source

feat : 查询筛选布局优化

dev
徐振升 5 days ago
parent
commit
34a8b997fc
  1. 6
      lib/modules/problem/views/widgets/compact_filter_bar.dart
  2. 3
      lib/modules/problem/views/widgets/custom_filter_dropdown.dart

6
lib/modules/problem/views/widgets/compact_filter_bar.dart

@ -45,7 +45,7 @@ class CompactFilterBar extends GetView<ProblemController> {
options: controller.dateRangeOptions,
selectedValue: controller.currentDateRange.value.name,
onChanged: controller.updateDateRange,
width: 110.w,
width: 100.w,
showBorder: false,
),
),
@ -59,7 +59,7 @@ class CompactFilterBar extends GetView<ProblemController> {
options: controller.uploadOptions,
selectedValue: controller.currentUploadFilter.value,
onChanged: controller.updateUploadFilter,
width: 110.w,
width: 100.w,
showBorder: false,
),
),
@ -73,7 +73,7 @@ class CompactFilterBar extends GetView<ProblemController> {
options: controller.bindOptions,
selectedValue: controller.currentBindFilter.value,
onChanged: controller.updateBindFilter,
width: 110.w,
width: 100.w,
showBorder: false,
),
),

3
lib/modules/problem/views/widgets/custom_filter_dropdown.dart

@ -31,7 +31,7 @@ class CustomFilterDropdown extends StatelessWidget {
borderRadius: BorderRadius.circular(8.r),
)
: null,
padding: EdgeInsets.symmetric(horizontal: 12.w, vertical: 0.h),
// padding: EdgeInsets.only(left: 10.w),
child: DropdownButtonHideUnderline(
child: DropdownButton<String>(
value: selectedValue,
@ -42,6 +42,7 @@ class CustomFilterDropdown extends StatelessWidget {
color: Colors.black87,
fontWeight: FontWeight.normal,
),
padding: EdgeInsets.symmetric(horizontal: 10.w),
dropdownColor: Colors.white,
borderRadius: BorderRadius.circular(8.r),
items: options.map((DropdownOption option) {

Loading…
Cancel
Save