clipboard_watcher icon indicating copy to clipboard operation
clipboard_watcher copied to clipboard

Unable to open clipboard but the clipboard is correct?

Open fenchai23 opened this issue 3 years ago • 0 comments

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 ?? "");
  }

fenchai23 avatar Aug 31 '22 02:08 fenchai23