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

outdated

Lock screen gesture.

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())
                  ),
                ],
              );
            }
        ),
      ),
    );
  }
}
4
likes
0
pub points
42%
popularity

Publisher

unverified uploader

Lock screen gesture.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on gesture_recognition_v2