Fix scrolling issue in shared collections
This commit is contained in:
parent
9232d5ce6c
commit
5629f8ae7a
1 changed files with 3 additions and 7 deletions
|
@ -22,13 +22,9 @@ class _SharedCollectionPageState extends State<SharedCollectionPage> {
|
|||
@override
|
||||
Widget build(Object context) {
|
||||
var gallery = Gallery(
|
||||
asyncLoader: (lastFile, limit) => FilesDB.instance
|
||||
.getAllInCollectionBeforeCreationTime(
|
||||
widget.collection.id,
|
||||
lastFile == null
|
||||
? DateTime.now().microsecondsSinceEpoch
|
||||
: lastFile.creationTime,
|
||||
limit),
|
||||
asyncLoader: (_, __) =>
|
||||
FilesDB.instance.getAllInCollection(widget.collection.id),
|
||||
shouldLoadAll: true,
|
||||
reloadEvent: Bus.instance
|
||||
.on<CollectionUpdatedEvent>()
|
||||
.where((event) => event.collectionID == widget.collection.id),
|
||||
|
|
Loading…
Add table
Reference in a new issue