apple_pencil_double_tap 0.1.0 copy "apple_pencil_double_tap: ^0.1.0" to clipboard
apple_pencil_double_tap: ^0.1.0 copied to clipboard

PlatformiOS

Handy flutter plugin which simplifies apple pencil double tap detection.

Apple Pencil Double Tap #

Simple and easy to use plugin for apple pencil interaction detection in any Flutter application.

This package includes platform-specific implementation code for iOS 12.1+ and iPadOS 12.1+.

Instalation #

In the dependencies: section of your pubspec.yaml, add the following line:

apple_pencil_double_tap: <latest_version>

Usage #

You can use it very easily. For example:

import 'package:apple_pencil_double_tap/apple_pencil_double_tap.dart';

ApplePencilDoubleTap().listen(
    // For iPadOS <17.5
    v1Callback: (PreferredAction preferedAction) {
        print('Double tap detected. Prefered user action: $preferedAction');
    },
    // For iPadOS >=17.5
    onTapAction: (TapAction action) {
        print('TapAction: $action');
    },
    // For iPadOS >=17.5
    onSqueeze: (SqueezeAction action) {
        print('SqueezeAction: $action');
    },
    onError: (e) {
        print('Error: $e');
    },
);

Info #

apple_pencil_double_tap version: 0.0.2

License #

MIT

TODO #

  • Integration tests
5
likes
150
points
1.17k
downloads

Publisher

verified publishercodegrowers.tech

Weekly Downloads

Handy flutter plugin which simplifies apple pencil double tap detection.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on apple_pencil_double_tap