FLUTTER ECOSYSTEM

qwert2603/pattern_lock

패턴 잠금을 플러터 위젯으로!

pattern_lock 프로젝트 이미지
Stars
18
Forks
10
최근 푸시(UTC)
2023. 6. 10.
프로젝트 상태
활성
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