Image pastes as plain text with unusual string on Android when copied from Samsung Gallery #2323
Closed
Description
Is there an existing issue for this?
- I have searched the existing issues
Flutter Quill version
10.7.5
Steps to reproduce
- Run the example Android, with the latest version (e.g.
10.8.4
) or older versions (e.g.10.7.5
). - Copy an image from the gallery app, specifically the Samsung gallery app (not Google Photos) on a real device.
- Paste it using the paste button in the toolbar or the context menu.
Expected results
Actual results
Additional Context
At first, I assumed this was a regression from #2230 though I'm able to reproduce the issue on older versions.
It looks like Clipboard.getData(Clipboard.kTextPlain)
returns a strange String and this issue doesn't happen when copying an image from the browser or other apps.
I tried super_clipboard
(since quill_native_bridge
doesn't have getClipboardText()
) and it seems it returns null
which is correct and the expected behavior.
This is a disruptive bug, I'm uncertain if this bug is from Clipboard.getData(Clipboard.kTextPlain)
or from that Samsung gallery app.