Skip to content

Commit d2d00cc

Browse files
Nurhan TurgutNoamDev
authored andcommitted
add warning message for clipboard api (flutter#15304)
1 parent 1662cc9 commit d2d00cc

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

lib/web_ui/lib/src/engine/window.dart

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,12 @@ class EngineWindow extends ui.Window {
158158
case 'SystemSound.play':
159159
// There are no default system sounds on web.
160160
return;
161+
case 'Clipboard.setData':
162+
case 'Clipboard.getData':
163+
// TODO(nurhan): https://github.com/flutter/flutter/issues/46020
164+
print('WARNING: Clipboard API unimplemented for Flutter for Web. '
165+
'Use context menu for text editing.');
166+
return;
161167
}
162168
break;
163169

0 commit comments

Comments
 (0)