Skip to content
pubscout

pattern_lock

2.0.0, released 6 years ago by an unverified publisher

A customizable pattern lock widget for Flutter.

WASM-ready
$ flutter pub add pattern_lock
Source repository

What it does

Provides a PatternLock widget that allows users to input a pattern by connecting points in a grid. It supports customization of colors, point radius, dimensions, and provides callbacks when input is complete.

AI-written summary of version 2.0.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need a gesture-based pattern lock screen for security.
  • You want a customizable point-connecting input mechanism.

Skip it when

  • You need complex biometric authentication like fingerprint or face recognition.
  • You require advanced non-grid pattern layouts.

Strengths

  • Easy to use and customizable.
  • Supports null safety and multiple platforms.

Weaknesses

  • Limited to grid-based point connections.
  • Lacks built-in persistent storage or state management for the correct pattern.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0
PatternLock(
  selectedColor: Colors.red,
  pointRadius: 8,
  showInput: true,
  dimension: 3,
  onInputComplete: (List<int> input) {
    print("pattern is $input");
  },
)

Alternatives

Packages that do the same job and could replace pattern_lock.