All Projects → OpenFlutter → flutter_gesture_password

OpenFlutter / flutter_gesture_password

Licence: other
flutter_gesture_password

Programming Languages

dart
5743 projects
objective c
16641 projects - #2 most used programming language

Projects that are alternatives of or similar to flutter gesture password

Vertical Card Pager
Use dynamic and beautiful card view pagers to help you create great apps.
Stars: ✭ 84 (+9.09%)
Mutual labels:  flutter-plugin
fancy bar
A fancy yet beautiful animated widget for your Flutter apps
Stars: ✭ 33 (-57.14%)
Mutual labels:  flutter-plugin
flutter freshchat
The unofficial flutter plugin for Freshchat
Stars: ✭ 31 (-59.74%)
Mutual labels:  flutter-plugin
seo renderer
A Flutter Web Plugin to display Text Widget as Html for SEO purpose
Stars: ✭ 103 (+33.77%)
Mutual labels:  flutter-plugin
get version
Get Version - Get the Version Name, Version Code, Platform and OS Version, and App ID on iOS and Android. Maintainer: @rodydavis
Stars: ✭ 87 (+12.99%)
Mutual labels:  flutter-plugin
stream-feed-flutter
Stream Feed official Flutter SDK. Build your own feed experience using Dart and Flutter.
Stars: ✭ 67 (-12.99%)
Mutual labels:  flutter-plugin
expanding bottom bar
BottomNavigationBar for Flutter with expanding titles
Stars: ✭ 39 (-49.35%)
Mutual labels:  flutter-plugin
link text
Easy to use text widget for Flutter apps, which converts inlined urls into working, clickable links
Stars: ✭ 20 (-74.03%)
Mutual labels:  flutter-plugin
flutter-maplibre-gl
A flutter package for showing customizable vector/raster maps with Maplibre GL (forked from tobrun/flutter-mapbox-gl)
Stars: ✭ 69 (-10.39%)
Mutual labels:  flutter-plugin
simple gesture detector
Easy to use, reliable and lightweight gesture detector for Flutter apps, exposing simple API for basic gestures
Stars: ✭ 26 (-66.23%)
Mutual labels:  flutter-plugin
umeng analytics plugin
Flutter 版友盟统计插件
Stars: ✭ 20 (-74.03%)
Mutual labels:  flutter-plugin
Free-RASP-Flutter
Flutter library for improving app security and threat monitoring on Android and iOS mobile devices.
Stars: ✭ 62 (-19.48%)
Mutual labels:  flutter-plugin
flutter displaymode
A Flutter plugin to set display mode in Android
Stars: ✭ 118 (+53.25%)
Mutual labels:  flutter-plugin
flutter-app
Full Feature Todos Flutter Mobile app with fireStore integration.
Stars: ✭ 138 (+79.22%)
Mutual labels:  flutter-plugin
flutter facebook app events
Flutter Plugin for Facebook App Events
Stars: ✭ 88 (+14.29%)
Mutual labels:  flutter-plugin
twilio flutter
A Flutter package for Twilio API.
Stars: ✭ 16 (-79.22%)
Mutual labels:  flutter-plugin
nats-dart
NATS client for Dart lang
Stars: ✭ 31 (-59.74%)
Mutual labels:  flutter-plugin
flutter google maps
A Flutter plugin for integrating Google Maps in iOS, Android and Web applications. It is a wrapper of google_maps_flutter for Mobile and google_maps for Web.
Stars: ✭ 86 (+11.69%)
Mutual labels:  flutter-plugin
acr cloud sdk
🎵 🎶 ACR Cloud SDK For flutter
Stars: ✭ 19 (-75.32%)
Mutual labels:  flutter-plugin
flutter flavorizr
A flutter utility to easily create flavors in your flutter application
Stars: ✭ 260 (+237.66%)
Mutual labels:  flutter-plugin

gesture_password

Flutter的手势密码

Getting Started

For help getting started with Flutter, view our online documentation.

For help on editing package code, view the documentation. image

How to use ?

  1. Depend on it
dependencies:
  gesture_password: "^0.0.4"
  1. Install it
$ flutter packages get
  1. Import it
import 'package:gesture_password/gesture_password.dart';
import 'package:gesture_password/mini_gesture_password.dart';

属性

  • width 控件宽度(xia-weiyang想法)
  • selectedColor 选中的颜色
  • normalColor: 没选中的颜色
  • lineStrokeWidth: 线宽
  • circleStrokeWidth: 选中外圈圆宽
  • smallCircleR: 小圆半径
  • bigCircleR: 大圆半径
  • focusDistance: 选中差值 越大越容易选中
  • successCallback 选择4个以上松手回调,返回值为选中的index相加的字符串
  • failCallback 选择4下以上松手回调
  • selectedCallback 经过任意一个后回调,返回值为选中的index相加的字符串

Example

import 'package:flutter/material.dart';
import 'package:gesture_password/gesture_password.dart';
import 'package:gesture_password/mini_gesture_password.dart';

void main() => runApp(new MyApp());

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return new MaterialApp(
      title: 'Flutter Demo',
      theme: new ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: new MyHomePage(title: 'Flutter Demo Home Page'),
    );
  }
}

class MyHomePage extends StatefulWidget {
  MyHomePage({Key key, this.title}) : super(key: key);

  final String title;

  @override
  _MyHomePageState createState() => new _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  GlobalKey<MiniGesturePasswordState> miniGesturePassword =
      new GlobalKey<MiniGesturePasswordState>();

  GlobalKey<ScaffoldState> scaffoldState = new GlobalKey<ScaffoldState>();

  @override
  Widget build(BuildContext context) {
    return new MaterialApp(
      home: new Scaffold(
        key: scaffoldState,
        appBar: new AppBar(
          title: new Text('Plugin example app'),
        ),
        body: new Column(
          children: <Widget>[
            new Center(
                child: new MiniGesturePassword(key: miniGesturePassword)),
            new LayoutBuilder(
              builder: (BuildContext context, BoxConstraints constraints) {
                return new Container(
                  color: Colors.red,
                  margin: const EdgeInsets.only(top: 100.0),
                  child: new GesturePassword(
                    successCallback: (s) {
                      print("successCallback$s");
                      scaffoldState.currentState?.showSnackBar(new SnackBar(
                          content: new Text('successCallback:$s')));
                      miniGesturePassword.currentState?.setSelected('');
                    },
                    failCallback: () {
                      print('failCallback');
                      scaffoldState.currentState?.showSnackBar(
                          new SnackBar(content: new Text('failCallback')));
                      miniGesturePassword.currentState?.setSelected('');
                    },
                    selectedCallback: (str) {
                      miniGesturePassword.currentState?.setSelected(str);
                    },
                  ),
                );
              },
            ),
          ],
        ),
      ),
    );
  }
}
有需求的话,后期再加入其他的吧
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].