Skip to content

Commit 79a3111

Browse files
committed
📝 Add selectPredicate
1 parent 69523ae commit 79a3111

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

README-ZH.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,7 @@ platform :ios, '9.0'
183183
| specialItemPosition | `SpecialItemPosition` | 允许用户在选择器中添加一个自定义item,并指定位置。 | `SpecialPosition.none` |
184184
| loadingIndicatorBuilder | `IndicatorBuilder?` | 加载器的实现 | `null` |
185185
| allowSpecialItemWhenEmpty | `bool` | 在资源为空时是否允许显示自定义item | `false` |
186+
| selectPredicate | `AssetSelectPredicate` | 判断资源可否被选择 | `null` |
186187
| routeCurve | `Curve` | 选择构造路由动画的曲线 | `Curves.easeIn` |
187188
| routeDuration | `Duration` | 选择构造路由动画的时间 | `const Duration(milliseconds: 500)` |
188189

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,7 @@ platform :osx, '10.15'
176176
| specialItemPosition | `SpecialItemPosition` | Allow users set a special item in the picker with several positions. | `SpecialItemPosition.none` |
177177
| loadingIndicatorBuilder | `IndicatorBuilder?` | Indicates the loading status for the builder. | `null` |
178178
| allowSpecialItemWhenEmpty | `bool` | Whether the special item will display or not when assets is empty. | `false` |
179+
| selectPredicate | `AssetSelectPredicate` | Predicate whether an asset can be selected or unselected. | `null` |
179180
| routeCurve | `Curve` | The curve which the picker use to build page route transition. | `Curves.easeIn` |
180181
| routeDuration | `Duration` | The duration which the picker use to build page route transition. | `const Duration(milliseconds: 500)` |
181182

0 commit comments

Comments
 (0)