pin_lock_screen 1.0.0 copy "pin_lock_screen: ^1.0.0" to clipboard
pin_lock_screen: ^1.0.0 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.

example/lib/main.dart

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(
      debugShowCheckedModeBanner: false,
      home: MyHomePage(),
    );
  }
}

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

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Column(
        mainAxisAlignment: MainAxisAlignment.center,
        children: [
          PinLockScreen(
            correctPin: 1111,
            pinLength: 4,
            onPinMatched: (pin) {},
            onPinChanged: (pin) {},
            disableDotColor: Colors.yellow,
            wrongPinDotColor: Colors.red,
            filledPinDotColor: Colors.black,
            buttonElevation: 3,
            dotsShape: BoxShape.rectangle,
            gapBtwDotsAndNumPad: 100,
            buttonBackgroundColor: Colors.cyan,
            buttonForegroundColor: Colors.white,
            buttonBorderRadius: 12,
            buttonSize: const Size(80.0, 80.0),
            numPadVerticalSpacing: 30,
            numPadHorizontalSpacing: 20,
          ),
        ],
      ),
    );
  }
}
12
likes
150
pub points
73%
popularity

Publisher

verified publishertakipansari.com

Enhance your Flutter app's privacy and security with the pin_lock_screen package. Easily integrate a secure screen lock PIN feature.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on pin_lock_screen