Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[iOS] Exposing apple pencil and smart highlighter for custom toolbar #335

Merged
merged 2 commits into from
Jan 24, 2025

Conversation

darrenchann
Copy link
Contributor

@darrenchann darrenchann commented Jan 21, 2025

Add support for apple pencil and smart highlighter in custom toolbar as calling this wouldn't show the tools in this dart toolbar:

var customToolbar = CustomToolbar(
    'myToolbar',
    'myToolbar',
    [
      Tools.annotationLasso,
      Tools.annotationSmartPen,
      Tools.pencilKitDrawing,
      Tools.annotationCreateFreeHand,
      Tools.annotationCreateFreeHighlighter,
      Tools.eraser,
      Tools.annotationCreateSignature,
      Tools.annotationCreateStamp,
    ],
    ToolbarIcons.favorite);
var annotationToolbars = [
  customToolbar,
];
    config.annotationToolbars = annotationToolbars;

@darrenchann darrenchann requested review from dluco and removed request for dluco January 21, 2025 16:36
Copy link
Contributor

@dluco dluco left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works as expected! 👍

@darrenchann darrenchann merged commit b115228 into master Jan 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants