Skip to content

Commit 319a358

Browse files
authored
🐛 Uses correct isOriginal for the LocallyAvailableBuilder (#626)
1 parent f15336e commit 319a358

File tree

4 files changed

+7
-1
lines changed

4 files changed

+7
-1
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ that can be found in the LICENSE file. -->
1111

1212
*None.*
1313

14+
## 9.2.2
15+
16+
- Uses correct `isOriginal` for the `LocallyAvailableBuilder`.
17+
1418
## 9.2.1
1519

1620
- Improve changes when limited on iOS.

lib/src/delegates/asset_picker_builder_delegate.dart

+1
Original file line numberDiff line numberDiff line change
@@ -1676,6 +1676,7 @@ class DefaultAssetPickerBuilderDelegate
16761676
) {
16771677
return LocallyAvailableBuilder(
16781678
asset: asset,
1679+
isOriginal: false,
16791680
builder: (context, asset) {
16801681
final imageProvider = AssetEntityImageProvider(
16811682
asset,

lib/src/widget/builder/video_page_builder.dart

+1
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,7 @@ class _VideoPageBuilderState extends State<VideoPageBuilder> {
229229
return LocallyAvailableBuilder(
230230
key: ValueKey<String>(widget.asset.id),
231231
asset: widget.asset,
232+
isOriginal: false,
232233
builder: (BuildContext context, AssetEntity asset) {
233234
if (hasErrorWhenInitializing) {
234235
return Center(

pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: wechat_assets_picker
2-
version: 9.2.1
2+
version: 9.2.2
33
description: |
44
An image picker (also with videos and audio)
55
for Flutter projects based on WeChat's UI,

0 commit comments

Comments
 (0)