File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed
mobile/lib/widgets/asset_grid Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -151,7 +151,6 @@ class RenderList {
151
151
final dateLoader = query != null
152
152
? DateBatchLoader (
153
153
query: query,
154
- totalCount: total,
155
154
batchSize: 1000 * sectionSize,
156
155
)
157
156
: null ;
@@ -333,15 +332,13 @@ class RenderList {
333
332
334
333
class DateBatchLoader {
335
334
final QueryBuilder <Asset , Asset , QAfterSortBy > query;
336
- final int totalCount;
337
335
final int batchSize;
338
336
339
337
List <DateTime > _buffer = [];
340
338
int _bufferStart = 0 ;
341
339
342
340
DateBatchLoader ({
343
341
required this .query,
344
- required this .totalCount,
345
342
required this .batchSize,
346
343
});
347
344
@@ -360,7 +357,7 @@ class DateBatchLoader {
360
357
Future <void > _loadBatch (int targetIndex) async {
361
358
final batchStart = (targetIndex ~ / batchSize) * batchSize;
362
359
363
- _buffer = await query!
360
+ _buffer = await query
364
361
.offset (batchStart)
365
362
.limit (batchSize)
366
363
.fileCreatedAtProperty ()
You can’t perform that action at this time.
0 commit comments