Questions tagged [dart-webui]

Web UI lets you build web apps as if you had a browser from the future. You can use the cool new web technologies like Web Components, Model Driven Views and Dart today.

Web UI is currently deprecated, and they recommend using Polymer.dart instead.

Web UI lets you build web apps as if you had a browser from the future. You can use the cool new web technologies like Web Components, Model Driven Views and Dart today. Build apps easily using HTML as your template language, express your application's components in HTML, and synchronize your data automatically between Dart and your components.

252 questions
4
votes
1 answer

How do I run commands after build.dart builds?

build.dart is run by Dart Editor whenever a file changes. Many developers use build.dart to compile their Web UI apps. How can I run other commands after Web UI compiler finishes?
Seth Ladd
  • 112,095
  • 66
  • 196
  • 279
4
votes
1 answer

How do I create components that can take positional children as arguments (Dart)?

I am looking for resources on how to make webcomponents that can take positional children arguments. Something like: {{value}} // this could be any uneditable element //could be…
Stephen Cagle
  • 14,124
  • 16
  • 55
  • 86
4
votes
2 answers

How can a Dart Web Component obtain a reference to its children?

For illustration reasons, I've created a class inheriting from WebComponent called FancyOption that changes to a background color specified by text in one child element upon clicking another child element. import 'package:web_ui/web_ui.dart'; import…
Phlox Midas
  • 4,093
  • 4
  • 35
  • 56
4
votes
2 answers

Custom events in web components?

I want to implement my own text input web component like: The thing is, when the user chooses an item from the autocompletion list, how can my web component fire an event? I'm looking for something like…
Ahmed
  • 1,669
  • 4
  • 14
  • 16
4
votes
2 answers

DART: What is best practice for config settings

Interpreted languages such as PHP allow a separate file, often called config.php, to contain string constants such as server names. This facilitates deployment, as the config file is simply not uploaded when the code is updated - the server names,…
Peter B
  • 603
  • 1
  • 8
  • 18
4
votes
1 answer

Web Components in Dart

I've got a few questions considering web-components in Dart: 1.) How can we call a method of a component and foremost, how to get access to the component instance? I know we can supply properties to web components but not how to call methods on them…
anderswelt
  • 1,482
  • 1
  • 12
  • 23
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
2 answers

Problem while running Flutter web project

I started a new Flutter web Project and following all steps of the installation correctly. When I started to Debugging it or running it. This is the log I am getting while running. It opens the chrome window also and nothing is rendering on the…
Rishabh
  • 2,410
  • 4
  • 17
  • 36
3
votes
2 answers

Is there support for predefined macros in DART

Does DART support predefined macros such as: __LINE__ or __FUNCTION__ The reason for asking is that the transformer DART2JS makes the console log not useful as all the logs shows: js_primitives.dart:30 [update BasE] When using the transformer…
Bas E
  • 96
  • 1
  • 7
3
votes
3 answers

Controlling while loops in Dart

I am stuck trying to do something simple. I want to be able to count upwards until I click on the screen at which point i want the counting to stop. In reality the code itself will be carrying out complex AI calculations for a game, but first I want…
Stephen Poole
  • 73
  • 1
  • 5
3
votes
2 answers

YARN - Possible values for "Resource­Manager Web UI" port

Is the port for "Resource­Manager Web UI" for a yarn machine always set to 8088 or is it possible to change it? I see here in the documentation of hortonworks that the default value is 8088, but it is not written whether it could have different…
Xquery
  • 187
  • 1
  • 3
  • 9
3
votes
2 answers

Using Polymer core elements in Dart

Is there a way to use existing Polymer standard core elements , such as core-toolbar and core-menu, in Dart? If you download the polymer project with bower you can find the javascript versions in /polymer/bower-components/. core-toolbar, for…
alex
  • 1,250
  • 2
  • 12
  • 19
3
votes
2 answers

Is Polymer to succeed Web UI

Could someone please explain something for me. I am confused. Currently Polymer and Web UI seems to be two separate projects with a lot of similarities. Is Polymer to succeed Web UI - meaning Web UI will be discontinued in favour of Polymer?
st_clair_clarke
  • 5,453
  • 13
  • 49
  • 75
3
votes
1 answer

Querying a custom element, is returned as UnknownElement

I've defined a custom element, chat-view and have it displaying on a page: index
w.brian
  • 16,296
  • 14
  • 69
  • 118
3
votes
2 answers

How to get an array of all the child elements using Dart Language?

How to get the class names of the child elements of the class carousel in dart in the form of an array??
Kiran Kumar
  • 1,610
  • 3
  • 16
  • 22
1 2
3
16 17