isAppLocked property
bool
get
isAppLocked
Checks if the app is currently locked
Returns true
if the app is in a locked state, false
if authenticated.
Example usage:
if (context.isAppLocked) {
// Show different UI for locked state
return LockScreenWidget();
} else {
// Show normal app content
return AppContent();
}
Implementation
bool get isAppLocked {
final guardoState = _findGuardoStateNotifier();
return guardoState?.isAuthenticated == false;
}