Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

add warning message for clipboard api #15304

Merged
merged 1 commit into from
Jan 9, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions lib/web_ui/lib/src/engine/window.dart
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,12 @@ class EngineWindow extends ui.Window {
case 'SystemSound.play':
// There are no default system sounds on web.
return;
case 'Clipboard.setData':
case 'Clipboard.getData':
// TODO(nurhan): https://github.com/flutter/flutter/issues/46020
print('WARNING: Clipboard API unimplemented for Flutter for Web. '
'Use context menu for text editing.');
return;
}
break;

Expand Down