Welcome to background_downloader Discussions! #146
Replies: 3 comments 2 replies
-
How to delete downloaded file(s)? |
Beta Was this translation helpful? Give feedback.
-
Hello can someone help me when i want to track the status using this code in initState. FileDownloader().updates.listen((update) {
And i got the error |
Beta Was this translation helpful? Give feedback.
-
Hi @Zarnikyaw, the design of the downloader is such that you should start listening to Generally, the best way to implement this 'listen once and always' strategy is to create a Singleton object (or a BLOC if you use that pattern) when your app starts up, and use that object to hold state for all things that relate to downloads. During the initialization of the singleton object (which will by definition only happen once) you define your |
Beta Was this translation helpful? Give feedback.
-
👋 Welcome!
We’re using Discussions as a place to connect with other members of our community. We hope that you:
build together 💪.
If you have an issue with background_downloader then please use the Issues tab, so we can keep this Discussions tab about ideas etc.
Beta Was this translation helpful? Give feedback.
All reactions