Skip to content

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