Skip to content

Conversation

@DeTuksa
Copy link
Contributor

@DeTuksa DeTuksa commented Dec 5, 2025

This PR addresses pasting images into the textfield and preserving pasting of text. #129

Mobile Check:

  • Pasting local images from context menu for android and iOS
  • Pasting web images from context menu for android and iOS
  • Pasting files from context menu for android and iOS

Desktop Check:

  • Pasting web and local images using Ctrl+V/CMD+V
  • Pasting web and local images using right-click
  • Pasting files using Ctrl+V/Cmd+V or right-click
  • Pasting web and local images from toolbar (Edit -> Paste)

Web Check:

  • Pasting web images using Ctrl+V
  • Pasting local images using Ctrl+V
  • Pasting files using Ctrl+V
  • Pasting files, web and local images from right-click
  • Pasting files, web and local images from toolbar (Edit -> Paste)

Pre-launch Checklist

  • I read the [Contributor Guide] and followed the process outlined there for submitting PRs.
  • I read the [Tree Hygiene] wiki page, which explains my responsibilities.
  • I read the [Flutter Style Guide] recently, and have followed its advice.
  • I signed the [CLA].
  • I listed at least one issue that this PR fixes in the description above.
  • I updated/added relevant documentation (doc comments with ///).
  • I added new tests to check the change I am making, or this PR is [test-exempt].
  • All existing and new tests are passing.

@DeTuksa
Copy link
Contributor Author

DeTuksa commented Dec 5, 2025

Still working on a way to bypass the toolbar paste and right-click paste on web

@csells
Copy link
Contributor

csells commented Dec 5, 2025

@gspencergoog can you help us out here?

@gspencergoog
Copy link

To run the workflows? Sure.

@csells
Copy link
Contributor

csells commented Dec 6, 2025

@gspencergoog cam upi help us figure out how to cover all of the basis for UI gestures, keyboard shortcuts and mouse gestures to enable image pasting across desktop, web and mobile as detailed here?

@gspencergoog
Copy link

Sorry, I'd like to, but I'm a bit busy at the moment. Maybe ask the framework team to help?

@csells
Copy link
Contributor

csells commented Dec 8, 2025

Thanks, @gspencergoog .

@Piinks -- any thoughts here? what's the right way to be able to paste an image in across platforms in Flutter and hit all of the UI gestures, e.g. Ctrl/Cmd+V, right-click Paste, menu Paste, etc.? thanks!

@Piinks
Copy link

Piinks commented Dec 8, 2025

Hey @csells! I am not sure I understand the question, what are you looking for help with?

@csells
Copy link
Contributor

csells commented Dec 8, 2025

Hey Kate! The PR adds support for pasting images and text from the clipboard across platforms (desktop, mobile, web) in Flutter. @DeTuksa lists the places that image-pasting works, but he's still working on covering all paste methods — particularly toolbar-paste and right-click paste on web.

So basically: how do we override right-click / toolbar Paste on the web so we can do an image paste?

@Piinks
Copy link

Piinks commented Dec 8, 2025

how do we override right-click / toolbar Paste on the web so we can do an image paste?

Good question! I do not know this. I will see if I can find out!

@loic-sharma
Copy link
Member

@csells Have you tried using the package super_clipboard? https://pub.dev/packages/super_clipboard

@csells
Copy link
Contributor

csells commented Dec 8, 2025

thanks, @loic-sharma . that looks pretty great! @DeTuksa do you want to take a look?

@DeTuksa
Copy link
Contributor Author

DeTuksa commented Dec 9, 2025

Sure, thanks @csells. I'll check it out

@DeTuksa
Copy link
Contributor Author

DeTuksa commented Dec 10, 2025

@csells the super_clipboard package came in really handy. Pasting now works across all platforms. On MacOS, pasting from Edit on toolbar still doesn't work, but the problem isn't limited to just pasting as it includes copying, cutting and select all.

@csells
Copy link
Contributor

csells commented Dec 10, 2025

oh jeez. good catch on the copy/paste issues on editing. is that something you can track down, too?

@DeTuksa
Copy link
Contributor Author

DeTuksa commented Dec 10, 2025

Totally. I'll dig into the issue as well and see what I can do.

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.

5 participants