Hello Flutter Community,
I am currently facing an issue with my Flutter web application when I try to navigate to the “/admin” route after running the release build. The error I encounter is as follows:
Error :-
1Uncaught Error: Null check operator used on a null value
2 at kT.gt9 (main.dart.js:66151:18)
3 at main.dart.js:66160:5
4 at asZ.a (main.dart.js:4886:63)
5 at asZ.$2 (main.dart.js:36103:14)
6 at Object.I (main.dart.js:4872:10)
7 at kT.a9J (main.dart.js:66170:10)
8 at kT.im (main.dart.js:66154:25)
9 at kT.cB (main.dart.js:66171:23)
10 at main.dart.js:66177:14
11 at asZ.a (main.dart.js:4886:63)
This error seems to occur when I attempt to navigate to the “/admin” route. I have checked my code for any potential null values, but I am unable to pinpoint the exact cause of this issue.
You can view my website at coct.vitapath.in for more context.
Here are some details about my setup:
- Flutter version: 3.29.2
- Dart version: 3.7.2
I would greatly appreciate any guidance on how to resolve this error. If you have encountered a similar issue or have any suggestions on what I should check in my code, please let me know!
Thank you in advance for your help!
Best regards,
Mohit Khatri