Skip to content

Commit 2277ec5

Browse files
committed
Add specialItem count instead of hardcoded 1.
1 parent 711000a commit 2277ec5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

example/lib/customs/pickers/directory_file_asset_picker.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -585,7 +585,7 @@ class FileAssetPickerBuilder
585585
appBarPreferredSize ??= appBar(context).preferredSize;
586586
int totalCount = provider.currentAssets.length;
587587
if (specialItems.isNotEmpty) {
588-
totalCount += 1;
588+
totalCount += specialItems.length;
589589
}
590590
final int placeholderCount;
591591
if (isAppleOS(context) && totalCount % gridCount != 0) {

0 commit comments

Comments
 (0)