TF-4128 Separate download handling into independent class to decouple from views on web

This commit is contained in:
dab246
2025-10-28 16:44:40 +07:00
committed by Dat H. Pham
parent 832f8e1391
commit be8eaf6258
37 changed files with 955 additions and 1095 deletions
@@ -91,7 +91,7 @@ class _PDFViewerState extends State<PDFViewer> {
widget.attachment,
widget.accountId,
widget.downloadUrl,
_downloadAttachmentStreamController,
onReceiveController: _downloadAttachmentStreamController,
cancelToken: _downloadAttachmentCancelToken
).listen((viewState) {
viewState.fold(