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
6
votes
1 answer

Dart confusing TYPE error

I am building a web application using dart with web_ui. Everything was working fine until i added the web_ui pub, and now, when I am trying to run a build.dart file I get an error: Uncaught Error: type 'AttributeName' is not a subtype of type…
deloki
  • 1,729
  • 2
  • 18
  • 26
5
votes
1 answer

WebView support for FlutterWeb for plugin development

Hi I developed a Flutter Plugin flutter_tex. It's based on the WebView. How do I add Flutter Web support for this?? I tried this example to show my HTML content. import 'dart:ui' as ui; void forWeb() { if(kIsWeb){ // ignore:…
Shahzad Akram
  • 4,586
  • 6
  • 32
  • 65
5
votes
0 answers

The included part ''xclickcounter.dart'' must have a part-of directive

Create a sample web application using the Web UI (web_ui) library, e.g., mylib open mylib.dart, make it a library: library mylib; import 'dart:html'; import 'package:web_ui/web_ui.dart'; part 'xclickcounter.dart'; ... open xclickcounter.dart,…
Y2i
  • 3,748
  • 2
  • 28
  • 32
5
votes
2 answers

Compiling Web UI components to the HTML

I'm building a simple web site in Dart Web UI. Each page has a header (with site navigation) and a footer. I've used components for the header and footer, and each page looks something like this: …
JJJ
  • 32,902
  • 20
  • 89
  • 102
5
votes
2 answers

How to use Google Dart web-ui @observable standalone?

I can't figure out how to use the @observable annotation/Observable class to get simple notifications when the state of an object changes. import 'package:web_ui/observe.dart'; @observable class T{ String x; // what else is needed? } T t = new…
mme
  • 167
  • 1
  • 8
5
votes
1 answer

How to listen for a keyboard event in dart programming

I'm new to google dart and been trying to learn it for a day now. I'm pretty novice to programming in general and I'm trying to read the documentation; however, I feel a bit overwhelmed. I would like to know the most proper method of creating a…
Armeen Moon
  • 18,061
  • 35
  • 120
  • 233
5
votes
1 answer

Dart web UI and iterating inside a table

I tried to iterate over data inside a table: …
Kai Sellgren
  • 27,954
  • 10
  • 75
  • 87
5
votes
2 answers

How do I display my UI only after my app is initialized?

I have a Dart + Web UI app that first needs to load data from the local IndexedDB store. The IndexedDB API is asynchronous, so I will get a callback when my data is loaded. I do not want to display any UI elements until my database is first opened…
Seth Ladd
  • 112,095
  • 66
  • 196
  • 279
5
votes
5 answers

pub install dart-web-components failed

Running pub install on dart-web-components gives an error: Pub install fail, HttpParserException: Connection closed before full header was received /dart-web-components/build.dart --changed=packages\args\args.dart…
Juri Krainjukov
  • 732
  • 8
  • 27
4
votes
1 answer

App Layout of angular components throws error with .scss

I am trying to apply App Layout component of material design angular_components in AngularDart with the following codes, but the system throws an error while applying it through .scss. Kindly help me to know what's missing in the following to make…
Tushar Rai
  • 2,371
  • 4
  • 28
  • 57
4
votes
1 answer

How to change Element innerHtml to Dart SDK 0.7.1

I am using dart-message https://github.com/mkozhukh/dart-message. It has function ... MessageBox(String text, String header, String css){ _box = new DivElement(); ... _box.onClick.listen(_clickHandler); if (header != null) …
Tuan Hoang Anh
  • 994
  • 12
  • 31
4
votes
1 answer

when opening a HttpRequest I get this error: 2 positional arguments expected, but 5 found

I have written a function to submit a form to a REST API. Here is the code: HttpRequest request; void submitForm(Event e) { e.preventDefault(); // Don't do the default submit. request = new HttpRequest(); …
Softinio
  • 638
  • 1
  • 6
  • 19
4
votes
3 answers

How to test web components in Dart?

There isn't much documentation insofar on web-ui testing in Dart. Two methods are available : a) run through Chrome's DumpRenderTree or b) a trick that consists of loading the app as is and running the test code on top of it. For trivial cases, the…
nunobaba
  • 514
  • 3
  • 11
4
votes
1 answer

How to style internal elements of a Dart Web Component?

I am playing with the popover component in the Dart "bee" Web Components package (bee) However, I can't see a way of changing the default styling for internal elements of the component. I want to change the style of the
mark
  • 129
  • 1
  • 8
4
votes
3 answers

Does @observable have to be used on every field?

I've noticed if I do not use @observable in any of my web ui code all fields/members changes are picked up automatically with the data binding syntax. The issue I run into is when picking one field in a class that extends WebComponent and applying…
adam-singer
  • 4,489
  • 4
  • 21
  • 25
1
2
3
16 17