FLUTTER ECOSYSTEM

qwert2603/pattern_lock

पैटर्न लॉक को फ्लटर विजेट के रूप में!

pattern_lock प्रोजेक्ट कवर
Stars
18
Forks
10
अंतिम पुश (UTC)
10 जून 2023
प्रोजेक्ट स्थिति
सक्रिय
Alexander Zhdanov GitHub avatar
GITHUB User

Alexander Zhdanov ↗

Android Developer

Earth
भाषाएँDartHTMLSwiftKotlinShellObjective-C

इस रिपॉज़िटरी के पैकेज

उपयोग की गई निर्भरताएँ

निर्भरता सूची 2 आइटम
  • flutter{"sdk":"flutter"}
  • flutter_testडेवलपमेंट{"sdk":"flutter"}

मूल README

यह अंग्रेज़ी मूल स्नैपशॉट है। नवीनतम सामग्री GitHub पर देखें।

README खोलें / बंद करें

Pattern Lock

pub package

Pattern Lock as Flutter widget.

Demo web-site.

Demo

https://github.com/qwert2603/pattern_lock/blob/master/art/device20190613185830.gif

Usage

PatternLock(
  // color of selected points.
  selectedColor: Colors.red,
  // radius of points.
  pointRadius: 8,
  // whether show user's input and highlight selected points.
  showInput: true,
  // count of points horizontally and vertically.
  dimension: 3,
  // padding of points area relative to distance between points.
  relativePadding: 0.7,
  // needed distance from input to point to select point.
  selectThreshold: 25,
  // whether fill points.
  fillPoints: true,
  // callback that called when user's input complete. Called if user selected one or more points.
  onInputComplete: (List<int> input) {
    print("pattern is $input");
  },
);

Example

Example app with pattern setting and checking can be found here.

Screenshots

https://github.com/qwert2603/pattern_lock/blob/master/art/demo.png