pin_input_biometric_authenticator 0.0.2 copy "pin_input_biometric_authenticator: ^0.0.2" to clipboard
pin_input_biometric_authenticator: ^0.0.2 copied to clipboard

A package for pin screen & biometric authentication in one package

Pin authenticator on Screen with biometric authentication

Usage #

PinScreenWithBiometric class to implement.

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

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

  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: HomePage(),
    );
  }
}

class HomePage extends StatelessWidget {
  HomePage({super.key});

  TextEditingController textEditingController = TextEditingController();

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(),
      body: Center(
        child: SizedBox(
          width: MediaQuery.of(context).size.width * 0.75,
          child: Column(
            mainAxisAlignment: MainAxisAlignment.center,
            crossAxisAlignment: CrossAxisAlignment.center,
            children: [
            //implementation
              PinScreenWithBiometric(
                controller: textEditingController,
                textFieldLength: 4,
                authResultCallBack: (bool? result) {
                  debugPrint("BIOMETRIC RESULT IS `$result`");
                },
              ),
            ],
          ),
        ),
      ),
    );
  }
}

Additional information #

Welcome for Contribution

2
likes
0
pub points
17%
popularity

Publisher

unverified uploader

A package for pin screen & biometric authentication in one package

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on pin_input_biometric_authenticator