Skip to content

Commit 1368b45

Browse files
committed
🐛 Fix thumbSize assertion with the image provider
1 parent 082323f commit 1368b45

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

example/lib/pages/multi_assets_page.dart

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,11 @@ class _MultiAssetsPageState extends State<MultiAssetsPage>
216216

217217
Widget _imageAssetWidget(AssetEntity asset) {
218218
return Image(
219-
image: AssetEntityImageProvider(asset, isOriginal: false),
219+
image: AssetEntityImageProvider(
220+
asset,
221+
isOriginal: false,
222+
thumbSize: <int>[100, 100],
223+
),
220224
fit: BoxFit.cover,
221225
);
222226
}

example/lib/pages/single_assets_page.dart

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,11 @@ class _SingleAssetPageState extends State<SingleAssetPage>
186186

187187
Widget _imageAssetWidget(AssetEntity asset) {
188188
return Image(
189-
image: AssetEntityImageProvider(asset, isOriginal: false),
189+
image: AssetEntityImageProvider(
190+
asset,
191+
isOriginal: false,
192+
thumbSize: <int>[100, 100],
193+
),
190194
fit: BoxFit.cover,
191195
);
192196
}

0 commit comments

Comments
 (0)