pattern_dots 0.0.2-alpha pattern_dots: ^0.0.2-alpha copied to clipboard
A pattern lock UI using flutter.
pattern_dots #
A pattern lock UI using flutter.
USAGE #
bool isError = false;
...
PatternStyle(
data: PatternStyleData(
width: 4,
tapRange: 24,
),
child: PatternView(
isError: isError,
onTapDown: () {
isError = false;
setState(() {});
},
onComplete: (cells) {
isError = !listEquals(cells, [0, 4, 5, 8]);
setState(() {});
},
),
);
...