Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion packages/local_auth/local_auth/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
## NEXT
## 3.0.2

* Clarifies the `getAvailableBiometrics` documentation regarding iOS permission requirements.
* Updates minimum supported SDK version to Flutter 3.38/Dart 3.10.

## 3.0.1
Expand Down
8 changes: 7 additions & 1 deletion packages/local_auth/local_auth/lib/src/local_auth.dart
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,13 @@ class LocalAuthentication {
/// fail over to device credentials.
Future<bool> isDeviceSupported() async => LocalAuthPlatform.instance.isDeviceSupported();

/// Returns a list of enrolled biometrics.
/// Returns a list of the biometrics that the app can currently use for
/// authentication.
///
/// Note that this may not include all biometrics enrolled on the device.
/// For example, on iOS, biometrics may be enrolled on the device but
/// remain unavailable to the app if the user has not granted the required
/// permissions to use them.
Future<List<BiometricType>> getAvailableBiometrics() =>
LocalAuthPlatform.instance.getEnrolledBiometrics();
}
2 changes: 1 addition & 1 deletion packages/local_auth/local_auth/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: local_auth
description: Flutter plugin to allow local authentication via biometrics, passcode, pin, or pattern.
repository: https://github.com/flutter/packages/tree/main/packages/local_auth/local_auth
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+local_auth%22
version: 3.0.1
version: 3.0.2

environment:
sdk: ^3.10.0
Expand Down