Search packages, repositories and app categories

flutter_pin_code_widget cover
Package detailsv0.1.2

flutter_pin_code_widget

PIN Code wiget for creating and checking local pin code with flexible settings.

AndroidiOSWebmacOSWindowsLinux
30-day downloads
441
Likes
27
Pub points
160

Install package

flutter pub add flutter_pin_code_widget

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

A customizable Flutter widget for creating and validating local PIN codes with flexible configuration options. Designed for secure, user-friendly PIN entry across multiple platforms, it supports dynamic input length, styling, and validation logic. Ideal for authentication flows requiring a simple numeric code. The widget is lightweight and integrates seamlessly into apps needing PIN-based access control.

Use cases

  • User authentication
  • App lock feature
  • Secure data access
  • Two-factor verification
  • PIN setup flow
  • Device unlock

Key features

  • Customizable input length
  • Flexible styling options
  • Local PIN validation
  • Cross-platform support
  • Easy integration
  • On-screen keyboard handling

Suitable for

  • Simple authentication systems
  • Mobile app security
  • PIN-based login screens
  • Privacy-focused applications
  • Developers seeking lightweight solutions

Considerations

  • Does not handle cloud-based PIN storage
  • Limited to numeric input
  • No built-in biometric fallback
  • Requires manual implementation of retry logic
  • Not suitable for high-security environments without additional measures

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

  • A Flutter package that helps create a PIN Code screens.
  • Inspired by Android PIN code screen/
  • Widget can use PIN with any length (video below)

Note, that the widget has centerBottomWidget property, for adding one more button on the bottom left.

Usage

  PinCodeWidget(
    minPinLength: 4,
    maxPinLength: 25,
    onChangedPin: (pin) {
      // check the PIN length and check different PINs with 4,5.. length.
    },
    onEnter: (pin, _) {
      // callback user pressed enter
    },
    centerBottomWidget: IconButton(
      icon: const Icon(
        Icons.fingerprint,
        size: 40,
      ),
      onPressed: () {},
    ),
  ),
  1. Full example is here https://github.com/AgoraDesk-LocalMonero/flutter-pin-code-widget/blob/main/example/lib/main.dart
  2. How this package used in the real app https://github.com/AgoraDesk-LocalMonero/agoradesk-app-foss/blob/main/lib/features/auth/screens/pin_code_set_screen.dart

Showcase

Example app

Showcase|width=400px

App from the stores https://agoradesk.com/, the code is here code https://github.com/AgoraDesk-LocalMonero/agoradesk-app-foss/blob/main/lib/features/auth/screens/pin_code_set_screen.dart

Showcase|width=400px

Credits

This is a project by Agoradesk, P2P cryptocurrency trading platform. Created by the team behind LocalMonero, the biggest and most trusted Monero P2P trading platform.

Categories

Source repository

Projects using this package