biotrust_flutter 1.1.0 copy "biotrust_flutter: ^1.1.0" to clipboard
biotrust_flutter: ^1.1.0 copied to clipboard

Validação biométrica facial, prova de vida, FaceMatch e controle de acesso com os SDKs nativos BioTrust para Android e iOS.

example/example.dart

import 'package:biotrust_flutter/biotrust_flutter.dart';
import 'package:flutter/material.dart';

void main() => runApp(const MaterialApp(home: Exemplo()));

class Exemplo extends StatefulWidget {
  const Exemplo({super.key});

  @override
  State<Exemplo> createState() => _ExemploState();
}

class _ExemploState extends State<Exemplo> {
  String _situacao = 'Toque para validar.';

  Future<void> _validar() async {
    final config = ValidationConfig(
      uuid: 'SEU-UUID',
      apiUrl: 'https://api.biotrust.io',
      mode: ValidationMode.livenessOnly,
      locale: 'pt-BR',
    );

    final resultado = await const BioTrustValidator().validate(config);

    setState(() {
      _situacao = resultado.cancelled
          ? 'Cancelado.'
          : resultado.isSuccess
              ? 'Aprovado: ${resultado.vivacityConfidence.toStringAsFixed(1)}%'
              : resultado.message;
    });
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(title: const Text('BioTrust')),
      body: Center(child: Text(_situacao)),
      floatingActionButton: FloatingActionButton(
        onPressed: _validar,
        child: const Icon(Icons.face),
      ),
    );
  }
}
0
likes
140
points
52
downloads

Documentation

API reference

Publisher

verified publisherbiotrust.io

Weekly Downloads

Validação biométrica facial, prova de vida, FaceMatch e controle de acesso com os SDKs nativos BioTrust para Android e iOS.

Homepage

License

unknown (license)

Dependencies

flutter, http

More

Packages that depend on biotrust_flutter

Packages that implement biotrust_flutter