circular_pattern 0.1.1 circular_pattern: ^0.1.1 copied to clipboard
An alternative data input widget for flutter, consisting of circular dots.
circular_pattern #
Circular Pattern is a flutter package similar to mobile pattern lock which dots designed in a circular form
Features #
- A string symbol can be inserted to the middle of the pattern points
- Editable font and color theme
Getting started #
Import package and add CircularPattern to the widget tree.
Usage #
An example usage can be found at /example
folder.
CircularPattern(
onStart: () {
// called when started drawing a new pattern
},
onComplete: (List<PatternDot> input) {
// called when connected minimum amount of dots
// input is a list of PatternDot
},
// dots is a list of PatternDot
dots: const [
PatternDot(value: '1'),
PatternDot(value: '2'),
PatternDot(value: '3'),
PatternDot(value: '4'),
PatternDot(value: '5'),
PatternDot(value: '6'),
],
//Optionally edit color and font themes with CircularPatternOptions()
options: const CircularPatternOptions(),
),