gesture_recognition_v2 0.0.6 copy "gesture_recognition_v2: ^0.0.6" to clipboard
gesture_recognition_v2: ^0.0.6 copied to clipboard

A gesture recognition verification lock. A total of nine points, slide to connect different points and return an array of numbers.

example/lib/main.dart

import 'package:flutter/material.dart';

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

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

class MainPage extends StatelessWidget {
  const MainPage({Key? key}) : super(key: key);

  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: const Text("Gesture Recoginition"),
        ),
        body: Builder(builder: (context) {
          return Column(
            crossAxisAlignment: CrossAxisAlignment.center,
            children: <Widget>[
              MaterialButton(
                  child: const SizedBox(
                    height: 60,
                    child: Center(
                      child: Text(
                        "Setting Gesture",
                        style: TextStyle(fontSize: 20, color: Colors.black),
                      ),
                    ),
                  ),
                  onPressed: () => _routeToPage(context, const SettingPage())),
              MaterialButton(
                  child: const SizedBox(
                    height: 60,
                    child: Center(
                      child: Text(
                        "Verification Gesture",
                        style: TextStyle(fontSize: 20, color: Colors.black),
                      ),
                    ),
                  ),
                  onPressed: () => _routeToPage(context, const VerifyPage())),
            ],
          );
        }),
      ),
    );
  }
}
3
likes
120
pub points
43%
popularity

Publisher

unverified uploader

A gesture recognition verification lock. A total of nine points, slide to connect different points and return an array of numbers.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (LICENSE)

Dependencies

flutter

More

Packages that depend on gesture_recognition_v2