SevenRecognition

A new Flutter package.

Getting Started

This project is a starting point for a Dart package, a library module containing code that can be shared easily across multiple Flutter or Dart projects.

For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.

Example

/////////////////////////////////For Authentification
import 'package:flutter/material.dart';
import 'SevenRecognition.dart';

void main() {
  runApp(MyApp());

}

class MyApp extends StatelessWidget {
  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
        visualDensity: VisualDensity.adaptivePlatformDensity,
      ),
      home: Column(
        mainAxisAlignment: MainAxisAlignment.spaceEvenly,
        crossAxisAlignment: CrossAxisAlignment.center,
        children: <Widget>[
          Padding(
            padding: EdgeInsets.only(left: 30, right: 30),
            child: SevenRecognition(
                text: "Register",
                color: Colors.blue,
                AfterVerificationOrRegistrationSuccessRouteName: NextScreen.id, // redirected Route name
                openAuthentificationDialog: true,
                openRegistrationDialog: false),

          )
        ],
      ),
      routes: {
        NextScreen.id: (context) => NextScreen(), //next screen after registration Or verification 
      },
    );
  }
}

//////////////////////////////////////// For Registration

import 'package:flutter/material.dart';

import 'SevenRecognition.dart';

void main() {
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
        visualDensity: VisualDensity.adaptivePlatformDensity,
      ),
      home: Column(
        mainAxisAlignment: MainAxisAlignment.spaceEvenly,
        crossAxisAlignment: CrossAxisAlignment.center,
        children: <Widget>[
          Padding(
            padding: EdgeInsets.only(left: 30, right: 30),
            child: SevenRecognition(
                                   text: "Verify",
                                   color: Colors.blue,
                   //                icon: , you can put your own icon
                                   AfterVerificationOrRegistrationSuccessRouteName: NextScreen.id, // redirected Route name
                                   openAuthentificationDialog: true,
                                   openRegistrationDialog: false),

          )
        ],
      ),
 routes: {
        NextScreen.id: (context) => NextScreen(), //next screen after registration Or verification 
      },
    );
  }
}

Libraries

seven_face_authentification