Skip to content
This repository has been archived by the owner on Sep 22, 2024. It is now read-only.

Commit

Permalink
fix: add missing callback
Browse files Browse the repository at this point in the history
  • Loading branch information
iamalper committed Sep 26, 2023
1 parent bc414f8 commit c108dd7
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions lib/screens/receive_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,17 @@ class _ReceivePageInnerState extends ConsumerState<ReceivePageInner>
setState(() {});
});
_receiveClass = Receiver(
downloadAnimC: _downloadAnimC,
onDownloadStart: () => uiStatus = _UiState.downloading,
onAllFilesDownloaded: (files) async {
await ref.read(filesProvider.notifier).addFiles(files);
_files = files;
uiStatus = _UiState.complete;
},
);
downloadAnimC: _downloadAnimC,
onDownloadStart: () => uiStatus = _UiState.downloading,
onAllFilesDownloaded: (files) async {
await ref.read(filesProvider.notifier).addFiles(files);
_files = files;
uiStatus = _UiState.complete;
},
onDownloadError: (e) {
errorMessage = e.getErrorMessage(AppLocalizations.of(context)!);
uiStatus = _UiState.error;
});
_receive();
super.initState();
}
Expand Down

0 comments on commit c108dd7

Please sign in to comment.