This commit is contained in:
2026-03-22 00:12:57 +03:00
parent 578691d098
commit dedf5ada81
3 changed files with 135 additions and 53 deletions
+3 -5
View File
@@ -213,11 +213,9 @@ class _BiometricSectionState extends ConsumerState<_BiometricSection> {
}
Future _onToggle(bool val) async {
if (val) {
final ok = await BiometricService.authenticate();
if (!ok) return;
HapticService.light();
}
final ok = await BiometricService.authenticate();
if (!ok) return;
HapticService.light();
await BiometricService.setEnabled(val);
if (mounted) setState(() => _enabled = val);
}