holding 0.0.1
holding: ^0.0.1 copied to clipboard
Flutter 握持手感知插件,支持 HarmonyOS/OpenHarmony,订阅握持手状态变化(未握持/左手/右手/双手/未识别)。
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add holdingThis will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):
dependencies:
holding: ^0.0.1Alternatively, 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:holding/holding.dart';