flutter_accurascan_fm_liveness 1.0.3 copy "flutter_accurascan_fm_liveness: ^1.0.3" to clipboard
flutter_accurascan_fm_liveness: ^1.0.3 copied to clipboard

This package is for digital user verification system powered by Accura Scan.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:flutter_accurascan_fm_liveness_example/FaceMatch.dart';
import 'package:flutter_accurascan_fm_liveness_example/Liveness.dart';

void main() {
  runApp(const MaterialApp(
    home: HomePage(),
    debugShowCheckedModeBanner: false,
  ));
}

class HomePage extends StatefulWidget {
  const HomePage({Key? key}) : super(key: key);

  @override
  State<HomePage> createState() => _HomePageState();
}

class _HomePageState extends State<HomePage> {
  @override
  void initState() {
    super.initState();
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: const Text("Accura Scan"),
        backgroundColor: Colors.red[800],
      ),
      body: Container(
          decoration: const BoxDecoration(
              image: DecorationImage(
                  image: AssetImage("assets/images/bg_home.png"),
                  fit: BoxFit.cover
              )
          ),
          child:SingleChildScrollView(
              child: Center(
                child: Column(
                  children: [
                    const SizedBox(height: 30,),
                  Container(
                    width: 180,
                    child: ElevatedButton(
                    style: ElevatedButton.styleFrom(
                        shape: RoundedRectangleBorder(
                          borderRadius: BorderRadius.circular(5.0),
                        ), backgroundColor: Colors.red[800],
                        padding: const EdgeInsets.only(
                            top: 10, bottom: 10, right: 20, left: 20)),
                    child: Row(
                      children: [
                        Image.asset(
                          "assets/images/ic_liveness.png",
                          height: 30,
                          width: 30,
                        ),
                        const SizedBox(
                          width: 10,
                        ),
                        const Text(
                          "LIVENESS",
                          style: TextStyle(color: Colors.white),
                        ),
                      ],
                    ),
                    onPressed: () {
                      Navigator.push(context, MaterialPageRoute(builder: (context)=>const MyApp()));                    },
                  ),
              ),
                    SizedBox(height: 30,),
                    Container(
                      width: 180,
                      child: ElevatedButton(
                        style: ElevatedButton.styleFrom(
                            shape: RoundedRectangleBorder(
                              borderRadius: BorderRadius.circular(5.0),
                            ), backgroundColor: Colors.red[800],
                            padding: const EdgeInsets.only(
                                top: 10, bottom: 10, right: 20, left: 20)),
                        child: Row(
                          children: [
                            Image.asset(
                              "assets/images/ic_facematch.png",
                              height: 30,
                              width: 30,
                            ),
                            const SizedBox(
                              width: 10,
                            ),
                            const Text(
                              " FACEMATCH",
                              style: TextStyle(color: Colors.white),
                            ),
                          ],
                        ),
                        onPressed: () {
                          Navigator.push(context, MaterialPageRoute(builder: (context)=>const FaceMatch()));                    },
                      ),
                    )
                  ],
                ),
              )
          )
      ),
    );
  }
}
3
likes
130
points
170
downloads

Publisher

unverified uploader

Weekly Downloads

This package is for digital user verification system powered by Accura Scan.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, flutter_web_plugins, plugin_platform_interface

More

Packages that depend on flutter_accurascan_fm_liveness