Skip to content

Commit 7a89b18

Browse files
committed
🐛 Fix wrong index displays in thumbnail preview mode
1 parent bd2abd5 commit 7a89b18

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
66

77
## 5.1.2
88

9-
- Fix selected assets unsynced between thumb preview mode and grid view.
9+
- Fix selected assets not sync between thumbnail preview mode and grid view.
10+
- Fix wrong index displays in thumbnail preview mode.
1011

1112
## 5.1.1
1213

lib/src/delegates/asset_picker_viewer_builder_delegate.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -661,7 +661,7 @@ class DefaultAssetPickerViewerBuilderDelegate
661661
child: Center(
662662
child: isSelected
663663
? Text(
664-
(currentIndex + 1).toString(),
664+
'${selectedAssets!.indexOf(asset) + 1}',
665665
style: const TextStyle(
666666
fontSize: 16.0,
667667
fontWeight: FontWeight.bold,

0 commit comments

Comments
 (0)