pattern_lock 2.0.0 copy "pattern_lock: ^2.0.0" to clipboard
pattern_lock: ^2.0.0 copied to clipboard

Pattern lock as Flutter widget. Customizable and easy to use.

Pattern Lock #

pub package

Pattern Lock as Flutter widget.

Demo web-site. #

Demo #

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 #

34
likes
150
points
744
downloads

Publisher

unverified uploader

Weekly Downloads

Pattern lock as Flutter widget. Customizable and easy to use.

Repository (GitHub)
View/report issues

Documentation

API reference

License

Apache-2.0 (license)

Dependencies

flutter

More

Packages that depend on pattern_lock