flutter_tflite_web 3.0.0 copy "flutter_tflite_web: ^3.0.0" to clipboard
flutter_tflite_web: ^3.0.0 copied to clipboard

Platformweb

A Flutter package for identity validation using TensorFlow Lite with document and face detection. Supports DNI capture and selfie validation for web platforms.

example/example.dart

import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:flutter_tflite_web/bloc/reconocimiento/reconocimiento_bloc.dart';

/// Example showing how to use flutter_tflite_web for identity validation
void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter TFLite Web Example',
      home: const ValidationExample(),
    );
  }
}

class ValidationExample extends StatelessWidget {
  const ValidationExample({super.key});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: const Text('Identity Validation Example'),
      ),
      body: Center(
        child: ElevatedButton(
          onPressed: () {
            // Start the validation process
            context.read<ReconocimientoBloc>().add(OnInitReconocimiento());
          },
          child: const Text('Start Validation'),
        ),
      ),
    );
  }
}
0
likes
135
points
390
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter package for identity validation using TensorFlow Lite with document and face detection. Supports DNI capture and selfie validation for web platforms.

Documentation

API reference

License

MIT (license)

Dependencies

api_rest_flutter_web, auth_api_rest_web, camera, cupertino_icons, equatable, flutter, flutter_bloc, flutter_crud_esquemas_dynamicos_web, flutter_data_shp_provider, flutter_http_provider, flutter_models_provider, go_router, image, view_ui_flutter

More

Packages that depend on flutter_tflite_web