'flutter_downloader In the release version, it crashes (on Android)
I use flutter_downloader (on Android) Everything is correct in debug and profile mode and works well, but in the release version, after hitting the download button, the program crashes and that's it!
Solution 1:[1]
A temporary solution could be:
@pragma('vm:entry-point') must be placed above the callback function to avoid tree shaking in release mode for Android.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Sh4msi |