r/flutterhelp • • Mar 26 '24

RESOLVED Why does flutter run differently in debug/release?

Who thought this was a good idea? I just spent hours getting the layout of my app working correctly locally. I pushed it to my server thinking it was finally working and... blank screen and tons of errors.

Why would they allow invalid code to work when run in debug mode? I can't understand that decision. And the errors in release mode are absurdly opaque and provide no useful information. How do you guys deal with this?

0 Upvotes

20 comments sorted by

View all comments

1

u/[deleted] Mar 26 '24

It’s a great idea, in fact, native solutions work the same way, why would you need all the development resources in your builds that are target to the stores/server? It sounds that you are introducing layout bugs that tend to render in debug but in release the system prevents them from showing, check your console in the screens where this is happening, it will tell you which component is not being rendered properly