File tree Expand file tree Collapse file tree 1 file changed +8
-10
lines changed Expand file tree Collapse file tree 1 file changed +8
-10
lines changed Original file line number Diff line number Diff line change @@ -1429,21 +1429,19 @@ class DefaultAssetPickerBuilderDelegate
1429
1429
}
1430
1430
}
1431
1431
1432
- if (specialItemModels.isNotEmpty) {
1433
- if (prepandSpecialItemModels.isNotEmpty) {
1434
- if (index < prepandSpecialItemModels.length) {
1435
- return specialItemModels[index].item;
1436
- }
1432
+ if (prependItems.isNotEmpty) {
1433
+ if (index < prependItems.length) {
1434
+ return specialItemModels[index].item;
1437
1435
}
1436
+ }
1438
1437
1439
- if (appendSpecialItemModels.isNotEmpty) {
1440
- if (index >= length + prepandSpecialItemModels.length) {
1441
- return specialItemModels[index - length].item;
1442
- }
1438
+ if (appendItems.isNotEmpty) {
1439
+ if (index >= length + prependItems.length) {
1440
+ return specialItemModels[index - length].item;
1443
1441
}
1444
1442
}
1445
1443
1446
- final currentIndex = index - prepandSpecialItemModels .length;
1444
+ final currentIndex = index - prependItems .length;
1447
1445
1448
1446
if (currentPathEntity == null ) {
1449
1447
return const SizedBox .shrink ();
You can’t perform that action at this time.
0 commit comments