flutter-webview-windows icon indicating copy to clipboard operation
flutter-webview-windows copied to clipboard

JavaScript

Open ghost opened this issue 1 year ago • 1 comments

Does this support callback to flutter using javascript?

ghost avatar Feb 09 '24 19:02 ghost

not directly but you can just serialize whatever through messages;

controller.webMessage.listen((message) {
 print('Web message received $message');
});

controller.executeScript('window.chrome.webview.postMessage(<something>)');

you could make your own register thing if you want by creating your own functions.

TekExplorer avatar Jul 23 '25 22:07 TekExplorer