passcode
A Flutter widget for entering a passcode.
We all have a responsibility to keep our information secure and people always understand and know the importance of information security for their devices. By using a strong password and abiding by some important guidelines about passwords, you will help yourself avoid most of the pitfalls you may encounter. Here is a Flutter widget for entering a passcode, and it is ready to help you.

This widget allows you to customise number of characters, background and border colors and obscure text.

Example
import 'package:flutter/material.dart';
import 'package:passcode/passcode.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
appBar: AppBar(),
body: Center(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
PasscodeTextField(
onTextChanged: (passcode) {
print(passcode);
},
totalCharacters: 4,
borderColor: Colors.black,
passcodeType: PasscodeType.number,
),
],
),
),
),
);
}
}
GitHub
https://github.com/deven98/passcode