v2.0.0pattern_lock
Muster-Sperre als Flutter-Widget. Anpassbar und einfach zu bedienen.
39Likes 120030-Tage-Downloads160Pub-Punkte
AndroidiOSWebmacOSWindowsLinux
Muster-Sperre als Flutter-Widget!
{"sdk":"flutter"}{"sdk":"flutter"}Englischer Projektschnappschuss. Aktuelle Inhalte auf GitHub.
Pattern Lock as Flutter widget.
https://github.com/qwert2603/pattern_lock/blob/master/art/device20190613185830.gif
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 app with pattern setting and checking can be found here.
https://github.com/qwert2603/pattern_lock/blob/master/art/demo.png