Skip to content

Commit

Permalink
Add specialItem count instead of hardcoded 1.
Browse files Browse the repository at this point in the history
  • Loading branch information
yujunetee committed Oct 16, 2024
1 parent 711000a commit 2277ec5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -585,7 +585,7 @@ class FileAssetPickerBuilder
appBarPreferredSize ??= appBar(context).preferredSize;
int totalCount = provider.currentAssets.length;
if (specialItems.isNotEmpty) {
totalCount += 1;
totalCount += specialItems.length;
}
final int placeholderCount;
if (isAppleOS(context) && totalCount % gridCount != 0) {
Expand Down

0 comments on commit 2277ec5

Please sign in to comment.