Profile cover photo
Profile photo
Walter Barberis
66 followers
66 followers
About
Posts

Post has attachment
Add a comment...

Post has shared content
Add a comment...

Post has attachment
Add a comment...

Post has attachment

Post has attachment

Post has attachment

I'm trying the simple exercise (Helloworldfancy.dart):
import 'dart:html';

void main() {
  querySelector("#button").onClick.listen(sayHello);
}

void sayHello(MouseEvent event) {
  querySelector("#name").text = (querySelector("#name_box") as InputElement).value;
  (querySelector("#name_box") as InputElement).value = "";
}

and I get this error message:

Exception: The null object does not have a getter 'value'.

NoSuchMethodError: method not found: 'value'
Receiver: null
Arguments: [] (http://localhost:8080/helloworldfancy.dart:4)
Breaking on exception: The null object does not have a getter 'onClick'.
Add a comment...

Post has attachment
Photo
Add a comment...

Hi, I'm an absolute beginner of Dart and when I cannot run a very simple web application. The browser shows a message asking for the key for the APIs...I have try for hours without  solving the problem. Can any of you help me to set my browser? thank you Walter  

Post has attachment
Add a comment...
Wait while more posts are being loaded