Category "flutter-web-browser"

How to injest javascript in

I'm working on a Flutter web project. The web/index.html file is injecting a JavaScript script which could be simplified as: <script> window['dataLayer'

Mock JS object in tests on browser platform

I have this simplified dart file using dart:js: (dataLayer is used for Google tags, if that's any help) @JS() import 'package:js/js.dart'; @JS('dataLayer.push'