Closed scalz closed 2 months ago
It seems that this error triggers because of using generic type. If I remove generic type and force using String for instance, then release mode builds without error. Do you want me to create an issue on Flutter repo, or am I mis-using BeaconController with generic type ?
This builds fine with stable branch. Is there any particular reason why you need the beta sdk?
thx for reply. I switched because I needed some fixes which were not available in stable branch yet. I should take a look if they now are. It happened many times that I avoided annoying bugs in stable which were not present in beta, so, sometimes I switch between stable and beta, and this also allows me to check for future deprecated/breaking changes :)
I wonder if this error will trigger in a future stable version though. We can close this issue if you think it's not a bug in state_beacon, and I'll ask on flutter repo why this error trigger (maybe a bug in dart sdk..)
I got lucky to narrow this error to my recents experimentations with state_beacon, because my project is quite large, and the log doesn't tell where this error comes from.
Yea I think the issue is in dart sdk because state_beacon doesn't show up in the stacktrace.
Description
Hello, I started using state_beacon in my project (thx for your nice work). At the moment I'm using latest flutter beta branch, but maybe same error could happen with stable branch. Everything works fine in debug mode so far, but when I tried to build in release mode I got the error below. I narrowed it down to a controller that I started to use recently which uses state_beacon.
I'm not sure if state_beacon has a bug, if I'm doing something wrong (no analysis error in my project), or if this is a bug in Flutter compiler (still I think if it works in debug mode, release mode should do too).
Thank you for your help.
Steps To Reproduce
Using latest available flutter beta branch:
Expected Behavior
No build release error.
Screenshots
No screenshot.
Additional Context
It works well in debug mode, only release mode fails.