You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using flutter_downloader package to download some big files from the network in a nice manner.
When download task finishes library calls it's static download callback in a background isolate that is then uses ReceivePort to send a message to the main thread(isolate).
Problem is, all the code around this is now written in a singleton Manager class that is not a Widget.
When message that task download finished is published I need to somehow dispatch a store event that my download is finished so I could update UI properly.
How can I do that?
The text was updated successfully, but these errors were encountered:
AAverin
changed the title
Dispatch store action from an isolate callback>?
Dispatch store action from an isolate callback?
Mar 6, 2020
I am using flutter_downloader package to download some big files from the network in a nice manner.
When download task finishes library calls it's static download callback in a background isolate that is then uses ReceivePort to send a message to the main thread(isolate).
Problem is, all the code around this is now written in a singleton Manager class that is not a Widget.
When message that task download finished is published I need to somehow dispatch a store event that my download is finished so I could update UI properly.
How can I do that?
The text was updated successfully, but these errors were encountered: