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
23
votes
3 answers

How to build a complex Web UI application with multiple views?

I am going to build complex application having many different views. Imagine for example eshop solution. There can be a lot of different views: Contact page with some static information Registration form for new customers View of your order List of…
Samuel Hapak
  • 6,950
  • 3
  • 35
  • 58
20
votes
3 answers

How do I pass arbitrary data to a click event handler function from a Dart polymer web component

In Dart's Web UI, it was possible to pass arbitrary data to function in response to events, for example, the following snippet passes the value 2 to the increment(int incBy) method in response to the button's on-click event:
Chris Buckett
  • 13,738
  • 5
  • 39
  • 46
12
votes
1 answer

Dart - How does one dart project import code from another dart project without using pub?

Suppose I have two dart projects Project A contains code that uses web component to create bunch of UI widget (similar to https://github.com/kevmoo/widget.dart) Project B contains my front end code that would reuse the UI widget I created in project…
nobody
  • 2,709
  • 6
  • 35
  • 37
10
votes
2 answers

Dart How to code a simple web-socket echo app

I've been attempting to learn enough html, css, and Dart to create my first web page and all is going well, except that I do not understand how to create a simple page and a server side web-socket server that will just echo it back. The examples…
Nate Lockwood
  • 3,325
  • 6
  • 28
  • 34
9
votes
7 answers

Flutter Web: Missing main.dart.js and JavaScript files when building with flutter build web, but working fine with flutter run

I am running into an issue with Flutter web in which no JavaScript files are generated when running flutter build web in any project, causing prjects to simply load a blank page. I am currently on version 1.18.0 beta channel, and this happens with…
drogel
  • 2,567
  • 2
  • 13
  • 22
8
votes
2 answers

Dart webUI CSS issues

I am having trouble with styling when using webUI. When i inject my dataValues, my design is broken. In my concrete case, my menu is not displayed right. From what i can see, it looks like the {{dataValue}} has initial string length 0, and html and…
deloki
  • 1,729
  • 2
  • 18
  • 26
8
votes
1 answer

Making a Map or a List observable in Web UI

I can make a String or a num type observable by using the @observable declaration in the Dart code: @observable var x = ''; and {{ }} syntax in the html:
x = {{x}}
But @observable does not work with Lists and Maps. How do I make those…
Shailen Tuli
  • 13,815
  • 5
  • 40
  • 51
7
votes
2 answers

How To Setup AngularDart5 on VS Code

I have searched far and wide on documentation on how to effectively set up Angular Dart 5 on Visual Studio Code but found nothing conclusive so far. Places I've searched already: Youtube StackOverflow https://webdev.dartlang.org - The documentation…
Adifyr
  • 2,649
  • 7
  • 41
  • 62
7
votes
1 answer

Changing App Layout Drawer persistent to temporary at media change in AngularDart

I have an App Layout of angular components in my AngularDart project. How can I change the drawer of App layout from persistent to temporary at the change of media screen?
Tushar Rai
  • 2,371
  • 4
  • 28
  • 57
7
votes
2 answers

How to observe simple variable in dart language

My question is: How to observe changes on simple variable like String or num? I know that you can easy observe object like this: observe(t, (e) => print ("Value changed")); but How to do this on simple variable?
gblaszczyk
  • 73
  • 1
  • 3
7
votes
3 answers

Bootstrap.js not working in Polymer components

I'm currently working on translating our current Dart Web UI project to Polymer.dart. We use Bootstrap 3 for the front-end styling and many web animations (e.g. dropdown menus, modals, tooltips). However after I translated one Web UI component into…
user2338071
  • 135
  • 1
  • 3
7
votes
3 answers

Any UI control framework for DART?

I've just read about web ui framework for Dart but I havent seen any control for example datagrid or tab bar. Is there any library providing components like these ones from Sencha ExtJs?
borovsky
  • 873
  • 1
  • 9
  • 15
7
votes
1 answer

How do I set camel case attributes in Dart Web UI?

I have a Dart Web UI class like this: class PersonComponent extends WebComponent { bool loggedIn; String name; } and I'm using it like this: However, when I run the app, I get a NoSuchMethodError,…
Seth Ladd
  • 112,095
  • 66
  • 196
  • 279
6
votes
1 answer

Defining a global filter/transformer in Polymer.dart

Is there a way to define a global transformer that will be available in all custom elements?
Victor Savkin
  • 1,749
  • 1
  • 12
  • 17
6
votes
1 answer

Dart's Web Component vs Angular's Directive

Dart's Web Component and Angular's Directives look like they serve very similar purposes. Are there any significant differences?
John Tseng
  • 6,262
  • 2
  • 27
  • 35
1
2 3
16 17