File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -7,8 +7,8 @@ import 'dart:math' as math;
7
7
import 'dart:typed_data' ;
8
8
import 'dart:ui' as ui;
9
9
10
- import 'package:flutter/material.dart' ;
11
10
import 'package:flutter/gestures.dart' ;
11
+ import 'package:flutter/material.dart' ;
12
12
import 'package:flutter/scheduler.dart' ;
13
13
import 'package:flutter/services.dart' ;
14
14
@@ -808,9 +808,9 @@ class DefaultAssetPickerBuilderDelegate
808
808
selector: (_, DefaultAssetPickerProvider p) => p.currentPathEntity,
809
809
builder: (_, AssetPathEntity ? path, __) {
810
810
// First, we need the count of the assets.
811
- int totalCount = provider.currentPathEntity ! .assetCount;
811
+ int totalCount = path ! .assetCount;
812
812
// If user chose a special item's position, add 1 count.
813
- if (specialItemPosition != SpecialItemPosition .none) {
813
+ if (specialItemPosition != SpecialItemPosition .none && path.isAll ) {
814
814
totalCount += 1 ;
815
815
}
816
816
// Then we use the [totalCount] to calculate how many placeholders we need.
You can’t perform that action at this time.
0 commit comments