Skip to content

Image pastes as plain text with unusual string on Android when copied from Samsung Gallery #2323

Closed
@EchoEllet

Description

Is there an existing issue for this?

Flutter Quill version

10.7.5

Steps to reproduce

  1. Run the example Android, with the latest version (e.g. 10.8.4) or older versions (e.g. 10.7.5).
  2. Copy an image from the gallery app, specifically the Samsung gallery app (not Google Photos) on a real device.
  3. 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.

Metadata

Assignees

No one assigned

    Labels

    androidIssues or feature requests specific to the Android platform.bugSomething isn't workingmoderateIssues that are important for improving functionality or user experience.reproducibleThis bug has been confirmed and can be reliably reproduced.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions