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

Flutter custom contextual menu - iOS #6

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mutumbakato
Copy link
Collaborator

@mutumbakato mutumbakato commented Dec 4, 2024

Details

This PR demonstrates how to customize text selection contextual menu in Flutter from the native iOS SDK.
The demo code implements the method pdfViewController(_:menuForText:onPageView:appearance:suggestedMenu:) from PDFViewControllerDelegate from the PspdfkitPlatformViewImpl class. This method creates and returns a custom context menu when text is selected in the PDF view. The custom menu includes a single action titled "Custom Action" that prints "Custom Action" to the console when triggered.

NOTE: This PR should not be merged. It's for demonstration purpose only.

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.

1 participant