add warning message for clipboard api (flutter/engine#15304)
This commit is contained in:
committed by
Flutter GitHub Bot
parent
dcc0266219
commit
8b62b5f23a
@@ -158,6 +158,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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user