Is there a way to call Flutter web platform native code?

2.4k Views Asked by At

is there an approach to have something like a method channel on Flutter web apps to call to the javascript host?

1

There are 1 best solutions below

0
Randal Schwartz On BEST ANSWER

Yes. JS Interop apparently works fine. Some of the pub packages use it to link flutter web with native JS libs. I think the early firebase packages worked that way as well. Details linked from https://dart.dev/web/js-interop.