File tree Expand file tree Collapse file tree 4 files changed +10
-2
lines changed Expand file tree Collapse file tree 4 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ that can be found in the LICENSE file. -->
12
12
### Improvements
13
13
14
14
- Make Live Photos gesture consist when scaling and panning.
15
+ - Integrate ` LocallyAvailableBuilder ` with thumbnail options to improve the thumbnail loading speed.
15
16
16
17
## 9.3.0
17
18
Original file line number Diff line number Diff line change @@ -1715,6 +1715,8 @@ class DefaultAssetPickerBuilderDelegate
1715
1715
return LocallyAvailableBuilder (
1716
1716
asset: asset,
1717
1717
isOriginal: false ,
1718
+ withSubtype: false ,
1719
+ thumbnailOption: ThumbnailOption (size: gridThumbnailSize),
1718
1720
builder: (context, asset) {
1719
1721
final imageProvider = AssetEntityImageProvider (
1720
1722
asset,
Original file line number Diff line number Diff line change @@ -136,6 +136,11 @@ class _ImagePageBuilderState extends State<ImagePageBuilder> {
136
136
key: ValueKey <String >(widget.asset.id),
137
137
asset: widget.asset,
138
138
isOriginal: _isOriginal,
139
+ withSubtype: _isOriginal,
140
+ thumbnailOption: switch (widget.previewThumbnailSize) {
141
+ final size? => ThumbnailOption (size: size),
142
+ _ => null ,
143
+ },
139
144
builder: (BuildContext context, AssetEntity asset) {
140
145
// Initialize the video controller when the asset is a Live photo
141
146
// and available for further use.
Original file line number Diff line number Diff line change @@ -22,11 +22,11 @@ dependencies:
22
22
flutter :
23
23
sdk : flutter
24
24
25
- wechat_picker_library : ^1.0.2
25
+ wechat_picker_library : ^1.0.5
26
26
27
27
extended_image : ^8.3.0
28
28
photo_manager : ^3.4.0
29
- photo_manager_image_provider : ^2.0.0
29
+ photo_manager_image_provider : ^2.1.2
30
30
provider : ^6.0.5
31
31
video_player : ^2.7.0
32
32
You can’t perform that action at this time.
0 commit comments