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

Apple pencil #1740

Merged
merged 2 commits into from
Feb 15, 2024
Merged

Apple pencil #1740

merged 2 commits into from
Feb 15, 2024

Conversation

mtallenca
Copy link
Contributor

Added ScribbleFocusable widget to use as a parent widget for QuilRawEditorMultiChildRenderObject. Doing so will allow pencil drawing to text (currently Flutter is supporting this with Apple Pencil, when Flutter support S-Pen that will also work with this addition) in the bounds of the editor.

There are three associated configuration options:

/* Enable Scribble? Currently Apple Pencil only, defaults to false. */
bool enableScribble

/* Optional insets for the scribble area. If you have overlaying buttons / toolbar, you can exclude that area from scribble bounds so that taps work */
EdgeInsets? scribbleAreaInsets

/* Called when Scribble is activated. Example use - add toolbar item (Pencil icon) that would toggle enableScribble to move back / forth between scribble and tap modes. */
void Function()? onScribbleActivated

Breaking Change

  • No, this is not a breaking change.

… to use it as parent widget of QuilRawEditorMultiChildRenderObject.

Added optional configuration properties `final bool enableScribble`, `final EdgeInsets? scribbleAreaInsets`, `final void Function()? onScribbleActivated`
@singerdmx singerdmx merged commit 2c03c5e into singerdmx:master Feb 15, 2024
2 checks passed
@mtallenca mtallenca deleted the apple_pencil branch February 15, 2024 18:49
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