gesture_recognition 1.0.1 copy "gesture_recognition: ^1.0.1" to clipboard
gesture_recognition: ^1.0.1 copied to clipboard

a gesture recognition verification lock

example/lib/main.dart

import 'package:flutter/material.dart';

import 'demo/setting_page.dart';
import 'demo/verify_page.dart';

void main() => runApp(MainPage());

class MainPage extends StatelessWidget {

  void _routeToPage(BuildContext context,Widget page) {
    Navigator.of(context).push(
        MaterialPageRoute(builder: (context){
          return page;
        })
    );
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(title: Text("Gesture Recoginition"),),
        body: Builder(
            builder: (context) {
              return Container(
                child: Column(
                  crossAxisAlignment: CrossAxisAlignment.center,
                  children: <Widget>[
                    MaterialButton(
                        child: Container(
                          height: 60,
                          child: Center(
                            child: Text(
                              "Setting Gesture",
                              style: TextStyle(fontSize: 20,color: Colors.black),
                            ),
                          ),
                        ),
                        onPressed: () => _routeToPage(context,SettingPage())
                    ),
                    MaterialButton(
                        child: Container(
                          height: 60,
                          child: Center(
                            child: Text(
                              "Verification Gesture",
                              style: TextStyle(fontSize: 20,color: Colors.black),
                            ),
                          ),
                        ),
                        onPressed: () => _routeToPage(context,VerifyPage())
                    ),
                  ],
                ),
              );
            }
        ),
      ),
    );
  }
}
6
likes
20
points
21
downloads

Publisher

unverified uploader

Weekly Downloads

a gesture recognition verification lock

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on gesture_recognition