kalismeras61 / flutter_lock_screen

This package gives you lock screen or pass code page
MIT License
61 stars 25 forks source link

boolean expression must not be null #2

Closed prasant10050 closed 5 years ago

prasant10050 commented 5 years ago

I am getting this error when i launch this app [ERROR:flutter/lib/ui/ui_dart_state.cc(148)] Unhandled Exception: Failed assertion: boolean expression must not be null _LockScreenState._fingerPrint _fingerPrint() { if (widget.fingerVerify) { <.... error hit this line widget.onSuccess(); } }

kalismeras61 commented 5 years ago

If you using example code

Change this line

bool isFingerprint;

to this line; bool isFingerprint = false;