v2.0.0pattern_lock
作为 Flutter 小部件的图案锁。可自定义且易于使用。
39喜欢 4160近 30 天下载160Pub 分数
AndroidiOSWebmacOSWindowsLinux
作为 Flutter 小部件的图案锁!
以下为英文项目原文快照,最新内容请访问 GitHub。
Pattern Lock as Flutter widget.
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.
依赖清单 2 项
{"sdk":"flutter"}{"sdk":"flutter"}先按使用场景筛选,再比较项目活跃情况,最后到原始仓库核对使用要求。
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗