Skip to content

Unable to open clipboard but the clipboard is correct? #4

@fenchai23

Description

@fenchai23

onClipboardChanged: Unhandled Exception: PlatformException(Clipboard error, Unable to open clipboard, 5, null)

but the clipboard does print? what is this error for?

@override
  void onClipboardChanged() async {
    ClipboardData? newClipboardData =
        await Clipboard.getData(Clipboard.kTextPlain);
    print(newClipboardData?.text ?? "");
  }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions