File tree Expand file tree Collapse file tree 4 files changed +12
-3
lines changed Expand file tree Collapse file tree 4 files changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,12 @@ that can be found in the LICENSE file. -->
7
7
> [ !IMPORTANT]
8
8
> See the [ Migration Guide] ( guides/migration_guide.md ) for the details of breaking changes between versions.
9
9
10
+ ## 9.0.2
11
+
12
+ ### Fixes
13
+
14
+ - Fix the index with bottom items in the preview.
15
+
10
16
## 9.0.1
11
17
12
18
### Fixes
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 : 9.0.0+49
3
+ version : 9.0.2+51
4
4
publish_to : none
5
5
6
6
environment :
Original file line number Diff line number Diff line change @@ -608,12 +608,15 @@ class DefaultAssetPickerViewerBuilderDelegate
608
608
const double padding = 8.0 ;
609
609
610
610
void onTap (AssetEntity asset) {
611
- final int page;
611
+ int page;
612
612
if (previewAssets != selectedAssets) {
613
613
page = previewAssets.indexOf (asset);
614
614
} else {
615
615
page = index;
616
616
}
617
+ if (shouldReversePreview) {
618
+ page = previewAssets.length - page - 1 ;
619
+ }
617
620
if (pageController.page == page.toDouble ()) {
618
621
return ;
619
622
}
Original file line number Diff line number Diff line change 1
1
name : wechat_assets_picker
2
- version : 9.0.1
2
+ version : 9.0.2
3
3
description : |
4
4
An image picker (also with videos and audio)
5
5
for Flutter projects based on WeChat's UI,
You can’t perform that action at this time.
0 commit comments