region_detector 0.0.2 region_detector: ^0.0.2 copied to clipboard
Listen to user click and drag events over portions of your screen. Implement callbacks to handle pointer events over specific regions of your app screen.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add region_detector
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
region_detector: ^0.0.2
Alternatively, your editor might support flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:region_detector/region_detector.dart';