flutter_downloader In the release version, it crashes (on Android)

Issue

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

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.

github

Answered By – Sh4msi

Answer Checked By – Timothy Miller (FlutterFixes Admin)

Leave a Reply

Your email address will not be published. Required fields are marked *