MCarlomagno / FaceRecognitionAuth

😀🤳 Simple face recognition authentication (Sign up + Sign in) written in Flutter using Tensorflow Lite and Firebase ML vision library.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Late Initialization Error in faceDetected

armaneffendi06 opened this issue · comments

Hi Mr MCarlomagno, thanks for the code, it's very heplful. But, I have a problem in field faceDetected. Can you tell me, why? Here's the warning. Thank You. Have a great day.

════════ Exception caught by widgets library ═══════════════════════════════════
The following LateError was thrown building FutureBuilder(dirty, dependencies: [MediaQuery], state: _FutureBuilderState#14457):
LateInitializationError: Field 'faceDetected' has not been initialized.

Hi! I'm sorry for the late answer, I will check it out and then I will give you a response as soon as I figure out the bug, thanks!

I faced this case, I changed from late Face faceDeteced to Face? faceDeteced;