File tree Expand file tree Collapse file tree 8 files changed +20
-18
lines changed Expand file tree Collapse file tree 8 files changed +20
-18
lines changed Original file line number Diff line number Diff line change @@ -4,11 +4,15 @@ that can be found in the LICENSE file. -->
4
4
5
5
# Changelog
6
6
7
- ## 8.4.2+1
7
+ ## 8.4.3
8
+
9
+ ### New features
10
+
11
+ - Add Vietnamese language text delegate. (#424 ).
8
12
9
13
### Improvements
10
14
11
- - Support semantics with Vietnamese text delegates . (#424 ).
15
+ - Expand ` FilterOptionGroup ` to ` PMFilter ` . (#436 )
12
16
13
17
## 8.4.2
14
18
Original file line number Diff line number Diff line change @@ -272,7 +272,7 @@ final List<AssetEntity>? result = await AssetPicker.pickAssets(
272
272
| keepScrollOffset | ` bool ` | 选择器是否可以从同样的位置开始选择 | ` null ` |
273
273
| sortPathDelegate | ` SortPathDelegate<AssetPathEntity>? ` | 资源路径的排序实现,可自定义路径排序方法 | ` CommonSortPathDelegate ` |
274
274
| sortPathsByModifiedDate | ` bool ` | 是否结合 ` FilterOptionGroup.containsPathModified ` 进行路径排序 | ` false ` |
275
- | filterOptions | ` FilterOptionGroup? ` | 允许用户自定义资源过滤条件 | ` null ` |
275
+ | filterOptions | ` PMFilter? ` | 允许用户自定义资源过滤条件 | ` null ` |
276
276
| gridCount | ` int ` | 选择器网格数量 | 4 |
277
277
| themeColor | ` Color? ` | 选择器的主题色 | ` Color(0xff00bc56) ` |
278
278
| pickerTheme | ` ThemeData? ` | 选择器的主题提供,包括查看器 | ` null ` |
Original file line number Diff line number Diff line change @@ -282,7 +282,7 @@ Fields in `AssetPickerConfig`:
282
282
| keepScrollOffset | ` bool ` | Whether the picker should save the scroll offset between pushes and pops. | ` null ` |
283
283
| sortPathDelegate | ` SortPathDelegate<AssetPathEntity>? ` | Path entities sort delegate for the picker, sort paths as you want. | ` CommonSortPathDelegate ` |
284
284
| sortPathsByModifiedDate | ` bool ` | Whether to allow sort delegates to sort paths with ` FilterOptionGroup.containsPathModified ` . | ` false ` |
285
- | filterOptions | ` FilterOptionGroup? ` | Allow users to customize assets filter options. | ` null ` |
285
+ | filterOptions | ` PMFilter? ` | Allow users to customize assets filter options. | ` null ` |
286
286
| gridCount | ` int ` | Grid count in picker. | 4 |
287
287
| themeColor | ` Color? ` | Main theme color for the picker. | ` Color(0xff00bc56) ` |
288
288
| pickerTheme | ` ThemeData? ` | Theme data provider for the picker and the viewer. | ` null ` |
Original file line number Diff line number Diff line change @@ -235,15 +235,13 @@ class PickMethod {
235
235
maxAssets: maxAssetsCount,
236
236
selectedAssets: assets,
237
237
requestType: RequestType .video,
238
- filterOptions: FilterOptionGroup ()
239
- ..setOption (
240
- AssetType .video,
241
- const FilterOption (
242
- durationConstraint: DurationConstraint (
243
- max: Duration (minutes: 1 ),
244
- ),
238
+ filterOptions: FilterOptionGroup (
239
+ videoOption: const FilterOption (
240
+ durationConstraint: DurationConstraint (
241
+ max: Duration (minutes: 1 ),
245
242
),
246
243
),
244
+ ),
247
245
),
248
246
);
249
247
},
Original file line number Diff line number Diff line change 1
1
name : wechat_assets_picker_demo
2
2
description : The demo project for the wechat_assets_picker package.
3
- version : 8.4.2+36
3
+ version : 8.4.3+37
4
4
publish_to : none
5
5
6
6
environment :
Original file line number Diff line number Diff line change @@ -143,7 +143,7 @@ class AssetPickerConfig {
143
143
///
144
144
/// Will be merged into the base configuration.
145
145
/// 将会与基础条件进行合并。
146
- final FilterOptionGroup ? filterOptions;
146
+ final PMFilter ? filterOptions;
147
147
148
148
/// Assets count for the picker.
149
149
/// 资源网格数
Original file line number Diff line number Diff line change @@ -277,7 +277,7 @@ class DefaultAssetPickerProvider
277
277
///
278
278
/// Will be merged into the base configuration.
279
279
/// 将会与基础条件进行合并。
280
- final FilterOptionGroup ? filterOptions;
280
+ final PMFilter ? filterOptions;
281
281
282
282
@override
283
283
set currentPath (PathWrapper <AssetPathEntity >? value) {
@@ -316,8 +316,8 @@ class DefaultAssetPickerProvider
316
316
);
317
317
318
318
// Merge user's filter option into base options if it's not null.
319
- if (filterOptions != null ) {
320
- options.merge (filterOptions! );
319
+ if (filterOptions is FilterOptionGroup ) {
320
+ options.merge (filterOptions as FilterOptionGroup );
321
321
}
322
322
323
323
final List <AssetPathEntity > list = await PhotoManager .getAssetPathList (
Original file line number Diff line number Diff line change 1
1
name : wechat_assets_picker
2
- version : 8.4.2+1
2
+ version : 8.4.3
3
3
description : |
4
4
An image picker (also with videos and audio)
5
5
for Flutter projects based on WeChat's UI,
@@ -17,7 +17,7 @@ dependencies:
17
17
sdk : flutter
18
18
19
19
extended_image : ^7.0.0
20
- photo_manager : ^2.4 .0
20
+ photo_manager : ^2.6 .0
21
21
provider : ^6.0.2
22
22
video_player : ^2.4.0
23
23
You can’t perform that action at this time.
0 commit comments