Skip to content

Instantly share code, notes, and snippets.

@Classy-Bear
Last active December 16, 2019 02:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Classy-Bear/f39026f92ac64e7d16cd42ed07bd6d76 to your computer and use it in GitHub Desktop.
Save Classy-Bear/f39026f92ac64e7d16cd42ed07bd6d76 to your computer and use it in GitHub Desktop.
Future<void> _probarAutorizacion() async {
bool podemosUsarAutorizacion = false;
try {
podemosUsarAutorizacion = await _autenticacion.canCheckBiometrics;
} on PlatformException catch (e) {
print(e);
}
if (!mounted) return;
setState(() {
_podemosUsarAutorizacion = podemosUsarAutorizacion;
print("Podemos usar autentincacion $_podemosUsarAutorizacion");
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment