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 ↗