gesture_recognition 1.0.1

Flutter Android iOS

a gesture recognition verification lock

gesture_recognition #

Pub support

a gesture recognition verification lock

中文 English #

Dependencies #

dependencies:
  gesture_recognition: ^version  

Demonstration #

Example #

Settings PassWord
GestureView(
	immediatelyClear: true,
	size: MediaQuery.of(context).size.width,
	onPanUp: (List<int> items) {
	  setState(() {
	    result = items;
	  });
	},
)
Verify PassWord
GlobalKey<GestureState> gestureStateKey = GlobalKey();

GestureView(
    key: this.gestureStateKey,
    size: MediaQuery.of(context).size.width*0.8,
    selectColor: Colors.blue,
    onPanUp: (List<int> items) {
      analysisGesture(items);
    },
    onPanDown: () {
      gestureStateKey.currentState.selectColor = Colors.blue;
      setState(() {
        status = 0;
      });
    },
)

Parameter #

PropsTypeDescriptionDefaultValueisRequired
sizedoubleThe size of the component, the width is equal to the heighttrue
selectColorColorThe color when selectedColors.bluefalse
unSelectColorColorColor when not selectedColors.greyfalse
ringWidthdoubleOuter ring width of the point4false
ringRadiusdoubleInner ring radius of the point30false
showUnSelectRingboolWhether the outer ring is displayed when the point is not selectedtruefalse
circleRadiusdoubleInner radius of the point20false
lineWidthdoubleConnection line width6false
onPanUpFunction(ListAfter the finger is raisedfalse
onPanDownFunction()After pressing your fingerfalse
immediatelyClearboolClear the trace after lifting the handfalsefalse
3
likes
70
pub points
73%
popularity

a gesture recognition verification lock

Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

mochixuan@gmail.com

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on gesture_recognition