pin_lock_screen 0.0.4 pin_lock_screen: ^0.0.4 copied to clipboard
Enhance your Flutter app's privacy and security with the pin_lock_screen package. Easily integrate a secure screen lock PIN feature, enabling users to protect sensitive content and features.
import 'package:flutter/material.dart';
import 'package:pin_lock_screen/pin_lock_screen.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return const MaterialApp(
home: MyHomePage(),
);
}
}
class MyHomePage extends StatelessWidget {
const MyHomePage({super.key});
@override
Widget build(BuildContext context) {
return Scaffold(
body: PinLockScreen(
correctPin: 11111,
pinLength: 5,
onPinMatched: (pin) {},
onPinChanged: (pin) {},
disableDotColor: Colors.yellow,
wrongPinColor: Colors.orange,
),
);
}
}