Questions tagged [dart-html]

Dart HTML allows access to basic browser features like the DOM, FileSystem, Websockets and other things.

Dart HTML provides access to basic browser features like the DOM, FileSystem, Websockets and other things. It doesn't provide the same interfaces to the DOM that JavaScript has, but provides a much richer interface to the DOM. Some browser features, like SVG, WebGL and Web Audio have their own libraries.

dart:html library

Connect Dart & HTML

474 questions
3
votes
2 answers

Dart: NoSuchMethodError - method not found "h" on null

I am using Flutter Web and when accessing a FutureBuilder I get the NoSuchMethodError - method not found "h" on null When inspecting the page, i see the following error: core_patch.dart:195 Uncaught TypeError: Cannot read properties of undefined…
Solovastru Ioan
  • 125
  • 1
  • 6
3
votes
2 answers

dart web : couldn't run webdev

I installed webdev to run dart web but when I want to run webdev it's showing an error: Building package executable... Failed to build webdev:webdev: ../../.pub-cache/hosted/pub.dartlang.org/dds-2.1.6/lib/src/cpu_samples_manager.dart:54:21: Error:…
Shahryar Pirooz
  • 410
  • 3
  • 10
3
votes
1 answer

Flutter web image copy and paste

I need to implement a feature on flutter web, where if someone copies an image by pressing crtl+c and pastes it in a TextField using ctrl+v the image should pop-up and from there submit it to the database. My question is how can I go about doing…
3
votes
1 answer

Flutter web upload file cancel event

I develop a web app in Flutter and I want to load a file from file system. In order to do that I use the following code: static Future chooseImage(dynamic parent, dynamic provider) async { Uint8List uploadedImage; final completer =…
Radu Hrihoreanu
  • 364
  • 3
  • 16
3
votes
2 answers

Can i use two iframes on Flutter web?

I'm new in Flutter and i'm developing a little web page for learn. I wanna put a google map and facebook feed using two iframe. I base my code on Wangoo's code here: https://medium.com/flutter-community/flutter-web-and-iframe-f26399aa1e2a If i use…
MasterNOD
  • 31
  • 1
  • 5
3
votes
1 answer

How to perform Deep-linking with Flutter Web?

Flutter Web: Is there a way to make the URLs for an app appear similar to the navigation route name so that we can do deep linking? For e.g. if I run an app now on chrome, the URL I get is "http://localhost:51322/#/". So if I am on the home screen,…
vzurd
  • 1,416
  • 2
  • 15
  • 37
3
votes
1 answer

How to upload a specific type of file with FileUploadInputElement in Flutter for Web

I was trying to create a simple file uploader for a project in flutter, meant to upload images on a Firebase storage bucket, but I can't find a way to select the file type. I've read the not-so-exhaustive documentation of Dart, but I didn't find…
3
votes
0 answers

How can I run webdev with dart?

How can ı dartlang patch for web dartlang running but webdev dart didnt work > stagehand web-simple > pub get > webdev serve commands didn't work error message C:\Users\SAMSUNG-PC>webdev serve 'webdev' is not recognized as an internal or…
3
votes
1 answer

In Dart, what's the simplest way to get the bytes of a local file for a web app?

(I'm new to web stuff, I'm sorry for any botched terminology) I want to make a Gameboy Emulator web app, and the first step in that is reading the bytes of the ROM. Eventually, the user will be able to select the ROM, but right now, I just have…
3
votes
4 answers

Get form input value with Dart

I'm trying to get the value of an input element e.g. this is simple form:
Mattia
  • 5,909
  • 3
  • 26
  • 41
3
votes
1 answer

AngularDart : Property binding ngIf not used by any directive on an embedded template error while using *ngIf

I am using AngularDart where i need to show and hide component based on boolean value registerDisplay. Tried using *ngIf , but throwing an error . Below is the html. app_component.html:
Arun s
  • 869
  • 9
  • 19
3
votes
1 answer

When attempting to test an html File object, it wont let me prepopulate it with a sample image?

I created Component I was wanting to test with Angular Dart's Framework. When I create my test file, it seems though that I am having issues creating a sample file to test against. In my hirerarchy, I…
Fallenreaper
  • 10,222
  • 12
  • 66
  • 129
3
votes
1 answer

How to sort a MappedListIterable in Dart

I've got a MappedListIterable than I know to sort When calling the sort method , I 'm getting EXCEPTION: NoSuchMethodError: Class 'MappedListIterable' has no instance method 'sort'. Receiver: Instance of 'MappedListIterable' Tried calling:…
bwnyasse
  • 591
  • 1
  • 10
  • 15
3
votes
0 answers

Dart JS Interop 0.6.0 and JS Promises - resolving

It does not appear there is a clear interception of JS Promises by the Interop or dart2JS. ServiceWorkerContainer swContain = window.navigator.serworker; swContain.register(workerScriptURI,scope).then((ServiceWorkerRegistration rego){ /// Here…
Ray King
  • 66
  • 1
  • 7
3
votes
1 answer

Issues with dart:js calls when compiled to JS

I have some severe issues with getting the context call from dart:js to function after having compiled the code to javascript dart2js. Here's a simple program I made to show my point, consisting of two files: main.dart import 'dart:html'; import…
Danni
  • 43
  • 6