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

Issue

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

Solution

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.

Answered By – Randal Schwartz

Answer Checked By – Timothy Miller (FlutterFixes Admin)

Leave a Reply

Your email address will not be published. Required fields are marked *