pin_code_view 0.1.0
pin_code_view: ^0.1.0 copied to clipboard
A flutter plugin to show beautiful pin code view. A on screen keyboard is placed at the bottom of the screen and a code view with blocks are added on the top of the screen.
import 'package:flutter/material.dart';
import 'package:pin_code_view/pin_code_view.dart';
class PinCodeScreen extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Scaffold(
body: PinCode(
title: Text(
"Lock Screen",
style: TextStyle(
color: Colors.white, fontSize: 25.0, fontWeight: FontWeight.bold),
),
subTitle: Text(
"Hello Boys",
style: TextStyle(color: Colors.white),
),
obscurePin: true, // to make pin * instead of number
codeLength: 6,
onCodeEntered: (code) {
//callback after full code has been entered
print(code);
},
),
);
}
}