From cf026e86b3c8246773212d3e52098a9feb61a3e4 Mon Sep 17 00:00:00 2001 From: violinday Date: Fri, 29 Apr 2022 17:06:10 +0800 Subject: [PATCH] Fix more selection range invalid (#206) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * perf: `Demo Theme` 修改 Demo 主题色。 * perf: remove async * mod: change build_test flutter-version to 2.10.5 * fix: `BrnSelectionView` 更多筛选,range 类型不生效的问题 --- lib/src/components/selection/brn_more_selection.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/src/components/selection/brn_more_selection.dart b/lib/src/components/selection/brn_more_selection.dart index 81165709..5ec4757f 100644 --- a/lib/src/components/selection/brn_more_selection.dart +++ b/lib/src/components/selection/brn_more_selection.dart @@ -245,8 +245,8 @@ class _BrnMoreSelectionPageState extends State node.filterType == BrnSelectionFilterType.dateRange || node.filterType == BrnSelectionFilterType.dateRangeCalendar)) { if (node.customMap != null && - (BrunoTools.isEmpty(node.customMap!['min']) || - BrunoTools.isEmpty(node.customMap!['max']))) { + !BrunoTools.isEmpty(node.customMap!['min']) && + !BrunoTools.isEmpty(node.customMap!['max'])) { if (!node.isValidRange()) { isValid = false; if (node.filterType == BrnSelectionFilterType.range) {