Skip to content

Commit d143a3f

Browse files
authored
🐛 Use the correct index reference with selectedBackdrop (#195)
1 parent 68517b8 commit d143a3f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/src/delegates/asset_picker_builder_delegate.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1031,7 +1031,7 @@ class DefaultAssetPickerBuilderDelegate
10311031
key: ValueKey<String>(asset.id),
10321032
children: <Widget>[
10331033
builder,
1034-
selectedBackdrop(context, index, asset),
1034+
selectedBackdrop(context, currentIndex, asset),
10351035
if (!isWeChatMoment || asset.type != AssetType.video)
10361036
selectIndicator(context, asset),
10371037
itemBannedIndicator(context, asset),

0 commit comments

Comments
 (0)