问题
the provider should work to provide real time updates to consumers but only works in debug mode and not release mode. do i have to use the state full widget again to update the ui with set state, any clue?
回答1:
Might be possible that you missed to add internet permission in AndroidManifest.xml
<uses-permission android:name="android.permission.INTERNET" />
We have to add Internet permission in AndroidManifest.xml file for release build. It is working fine in debug mode. If you have been calling api call in provider. Same mistake I have done and resolved that issue.
来源:https://stackoverflow.com/questions/59888106/flutter-provider-not-working-in-release-apk-but-working-fine-in-debug-mode