Skip to content

Commit

Permalink
🐛 Fix signature
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexV525 committed Feb 28, 2024
1 parent a3ebd88 commit e3e2e5a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/src/widget/insta_asset_picker_delegate.dart
Original file line number Diff line number Diff line change
Expand Up @@ -166,13 +166,15 @@ class InstaAssetPickerBuilder extends DefaultAssetPickerBuilderDelegate {
@override
Future<void> viewAsset(
BuildContext context,
int index,
int? index,
AssetEntity currentAsset,
) async {
if (index == null) {
return;
}
if (_cropController.isCropViewReady.value != true) {
return;
}

// if is preview asset, unselect it
if (provider.selectedAssets.isNotEmpty &&
_cropController.previewAsset.value == currentAsset) {
Expand Down

0 comments on commit e3e2e5a

Please sign in to comment.