11 questions
0
votes
1
answer
174
views
Flutter Web - JS Interop Listener (js-> js_interop)
I am trying to listen to the value of a scroll listener in my index.html file (named dartCtrlWheelEventHandler which returns a number value). My Flutter web app is able to listen to the value with the ...
0
votes
0
answers
44
views
Send JS function to Webview JS from Flutter
I have below function to return some data to JS side and It's a Map (However the flutter_inappwebview encodes the map after I return It), I do this by addJavaScriptHandler of flutter_inappwebview, But ...
2
votes
1
answer
474
views
How to pass object as parameter to javascript using flutter_js?
I need to run javascript code in my Flutter project.
I use flutter_js for this.
I can pass int (or String) value as parameter to javascript, for example:
String blocJs = await rootBundle.loadString(&...
0
votes
0
answers
830
views
How to resolve the error : No signature of method: build_3ov23u7xor54ble5ncs4vfgan.android() is applicable for argument
Hello everyone I'm asking for help here because after a week of searching and trying I still can't solve an error, preventing me from recompiling my flutter application into an android version.
Here ...
0
votes
1
answer
234
views
How to add channel to send message in flutter_js
I am trying to pass a message from Javascript to Flutter using package flutter_js but it seems like it's not working cuz it shows No Channel " " registered
below is my code
Future<dynamic&...
0
votes
0
answers
50
views
How can I show image in flutter by file without path?
I want to show the image in flutter, but I have a file just in two shapes (file - base64).
2
votes
1
answer
1k
views
Is it possible to use JS visual libraries (e.g. Chart.js or D3.js) in Flutter?
If it is possible, how exactly does it work? Maybe it's possible to access Flutter's Canvas widget through JS?
My best guess for this would be the flutter_js package.
1
vote
1
answer
777
views
TypeError: this._didCreateEngineInitializerResolve is not a function
I updated Flutter SDK yesterday and since then my web app doesn't run. I just see a white screen and in the console/log I see this error:
Do not call didCreateEngineInitializer by hand. Start with ...
0
votes
1
answer
251
views
Flutter js unit test
I have a flutter test project which depends on futter js (javascript environment) this, I wrote a unit test to it. But I keep getting error on this line
jsRuntime = getJavascriptRuntime();
Invalid ...
1
vote
1
answer
607
views
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')
external void _push(data);
class ...
4
votes
2
answers
4k
views
Import js.dart and html.dart for a mixed web / mobile flutter project
I'm using Flutter 2.5.2. I have a project which is to be used for both web and mobile (Android / iOS).
There is one particular widget where I need to use one version of the widget when deploying for ...