flutter build web --release not working, output result in error any white blank screen

Feedback

Null check operator used on a null value

this error is on console and the app freeze at a white blank screen.

It would not happen on --profile build. However profile build give a 17MB main.dart.js file while release build give a minified 6MB js file. And the code of profile build is not obfuscate, not good for deployment.

What can I do to fix it or any workaround? otherwise I may need to deploy with profile build, which is not ideal...🥲

12 replies