Remove code to trigger a refresh

This commit is contained in:
Vishnu Mohandas 2020-11-12 20:49:10 +05:30
parent 892d04288a
commit 42496a13ba
2 changed files with 0 additions and 5 deletions

View file

@ -19,10 +19,7 @@ import 'package:scrollable_positioned_list/scrollable_positioned_list.dart';
class Gallery extends StatefulWidget {
final List<File> Function() syncLoader;
final Future<List<File>> Function(File lastFile, int limit) asyncLoader;
// TODO: Verify why the event is necessary when calling loader post onRefresh
// should have done the job.
final Stream<Event> reloadEvent;
final Future<void> Function() onRefresh;
final SelectedFiles selectedFiles;
final String tagPrefix;
final Widget headerWidget;
@ -31,7 +28,6 @@ class Gallery extends StatefulWidget {
this.syncLoader,
this.asyncLoader,
this.reloadEvent,
this.onRefresh,
this.headerWidget,
@required this.selectedFiles,
@required this.tagPrefix,

View file

@ -149,7 +149,6 @@ class _HomeWidgetState extends State<HomeWidget> {
return _getFilteredPhotos(FileRepository.instance.files);
},
reloadEvent: Bus.instance.on<LocalPhotosUpdatedEvent>(),
onRefresh: SyncService.instance.sync,
tagPrefix: "home_gallery",
selectedFiles: _selectedFiles,
headerWidget: Column(