All Questions
Tagged with dart javascript
654
questions
0
votes
0
answers
46
views
type 'Null' is not a subtype of type 'String how to solve this problem [closed]
NoSuchMethodError: Class 'List' has no instance method 'Map'.
Receiver: Instance(length:0) of '_GrowableList'
Tried calling: Map(Closure: (dynamic) => Map<String, dynamic>)
you may look here
...
0
votes
0
answers
13
views
How to render HTML links in Flutter?
I am doing an experiment where the goal is to render Flutter Dart code into HTML.
import 'package:flutter/material.dart';
class HtmlLikeWidget extends StatelessWidget {
@override
Widget build(...
0
votes
0
answers
20
views
Securing In-App Purchases for Guest and Logged-in Players in a Flutter and Node.js Real-Time Game
I am developing a real-time game with Flutter as the frontend and Node.js as the backend. The game includes a shop UI where players can buy coins, gems, and avatars. Players can purchase gems using ...
0
votes
0
answers
53
views
Undefined variable error in flutter web index.html file
So I am loading a webview in flutter web app using webview_flutter_web. Problem is that when Flutter loads the webview, the variables in index.html giving me undefined error when I console them in ...
0
votes
0
answers
41
views
Flutter with JavaScript
To all my fellow JavaScript experts I need your help. In my Flutter app, I used JavaScript, can anyone help me edit my JavaScript code? I can get the URL and print for every click, but I don't need ...
0
votes
1
answer
39
views
How do I extract the values stored in an object returned from a runJavaScriptReturningResult function call?
I'm working on a flutter app which has a webview where I've called a runJavaScriptReturningResult function to return the results of a simple query which I've show below.
Future<void> ...
0
votes
0
answers
48
views
How to embed a flutter app in a normal dart web project and interop with it
I find flutter can export api to js :
Export the api to js through @js.JSExport() in the flutter app
Write in index.html js, and call the js api exposed by flutter in the previous step.
ref: https://...
2
votes
2
answers
114
views
How to compile dart to js for a non-web target?
I want to compile dart to js for a non-web target (eg. fermyon/js or node)
How do I compile dart to js for a non-web target?
update:
I'm told it's possible and while I cannot find any specific ...
0
votes
1
answer
41
views
button on image with grids(Flutter)
im trying to make an image into multiple grids like one image into 9 equal parts or anything based on the shape of a door or a model of a door but the problem is i'm not understanding how to add a ...
1
vote
1
answer
52
views
Flutter: Show PDF and videos but prevent download
I'm planning to provide a mobile app and I'm looking for the best fit of a program language or Framework.
I want to provide/present PDF files and videos via an App and restrict usage to logged in ...
0
votes
1
answer
68
views
How do I get data from a js function?
In my Flutter application, there is a call to the js function "get User Push()" at the click of a button. The result is written in INFO:CONSOLE. Please tell me how I can get this data for ...
0
votes
0
answers
17
views
Unable to successfully navigate using Dart code in a Javascript file
In my flutter project, I am utilizing HTML/JS/CSS for a CDN I want to use. Inside the HTML file I am attempting to add a simple "Exit" button that will bring the user back to the home screen....
0
votes
0
answers
75
views
How do I solve this android studio error?
I'm trying to start android studio through wsl on windows 10 and I am getting this error
Start Failed
Internal error. Please refer to https://code.google.com/p/android/issues
java.lang....
-1
votes
1
answer
35
views
VSCodium, not possible to run both Dart and JS in terminal
So I have this config rn in my launch.json file:
"launch": {
"version": "0.2.0",
"configurations": [
{
"name": &...
1
vote
0
answers
162
views
Uncaught ReferenceError: AudioWorkletProcessor is not defined in flutter web
I am trying to use audio worklets from web audio api to get mic input and displaying in a wave in a flutter app, I use the dart js package in order to call the javascript functions. The code works ...