pointer_lock 0.4.0
pointer_lock: ^0.4.0 copied to clipboard
Locks the mouse pointer in place and reports its motion as relative deltas, which Flutter offers on no desktop platform and does not surface in a browser.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add pointer_lockThis will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):
dependencies:
pointer_lock: ^0.4.0Alternatively, 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:pointer_lock/pointer_lock.dart';