Questions tagged [dart-editor]

The Dart Editor provides an integrated development experience for the Dart language. The editor supports refactoring, breakpoints, code completion, code navigation, and more.

The Dart Editor provides an integrated development experience for the Dart language. The editor supports refactoring, breakpoints, code completion, code navigation, and more.

Dart is a class-based optionally typed programming language for building web (and even server) applications created by Google. Dart’s design goals are:

  • Create a structured yet flexible language for web programming.
  • Make Dart feel familiar and natural to programmers and thus easy to learn.
  • Ensure that Dart delivers high performance on all modern web browsers and environments ranging from small handheld devices to server-side execution.

More information about the editor can be found at http://www.dartlang.org/docs/editor/, and Dart information and details can be found at http://www.dartlang.org

196 questions
126
votes
4 answers

What is the difference between "show" and "as" in an import statement?

What is the difference between show and as in an import statement? For example, what's the difference between import 'dart:convert' show JSON; and import 'package:google_maps/google_maps.dart' as GoogleMap; When do I use show and when should I…
nick
  • 1,431
  • 2
  • 11
  • 9
40
votes
7 answers

What is package naming convention used in Dart?

Is there a naming convention for Dart packages? Is there maybe a document that describes patterns? I have trouble figuring out naming convention for package names that consist of multiple words. For example, should I use placeView, PlaceView,…
markovuksanovic
  • 15,676
  • 13
  • 46
  • 57
16
votes
2 answers

How do I minify JavaScript code compiled from Dart Editor?

I am using Dart Editor to build a Dart app. I am compiling to JavaScript to run on all browsers. I want to minify the output JavaScript. How can I do this without dropping to the command line? I know that on the command line, I can use dart2js…
Seth Ladd
  • 112,095
  • 66
  • 196
  • 279
11
votes
1 answer

Async/Await feature in Dart 1.8

Is it in the 1.8 release as an experimental feature like enum or is it not? And how can I use it in the Dart Editor? Is there a nice article or example app that can get me started with this? When it is still an experimental feature what is…
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
7
votes
4 answers

How can I run unittests in Dart Editor?

I have the web application project in Dart Editor and I want to write some unittests for it. I tried to create .dart file with a simple unit test in the same project (with main function etc) but in context menu I had only 'run as javascript' and…
kolar
  • 1,010
  • 1
  • 9
  • 21
7
votes
2 answers

Why only static fields can be declared as 'const'?

I just upgraded my Dart Editor (0.5.16_r23799), and code that was bug/warning free, is not anymore. class Fubar { const BAR = 1000000; Fubar(){ } } Lines beginning by const have marker and this message : Only static fields can be…
Eric Lavoie
  • 5,121
  • 3
  • 32
  • 49
7
votes
1 answer

Dart pub update failed

I am getting the following error when trying to do a pub update to get the web_ui package installed. Dart Editor version : 0.2.10_r16761 Dart SDK version : 0.2.10.1_r16761 The "Help > About > Check for Update..." also gives me "Unable to get latest…
Geert
  • 239
  • 3
  • 12
7
votes
1 answer

Dart editor visual theme - blue text hard to read on black background

I would like to set a visual theme in the Dart editor with a black background, but there is always certain text that appears blue, which makes it difficult to read. For example, quoted text in HTML documents appears blue. So, in the following…
ringstaff
  • 2,331
  • 1
  • 16
  • 25
6
votes
2 answers

How to change default port number in Dart Editor

How to change server socket port number in Dart Editor? Because local tomcat using the 8080. Seem this port changed from 3030 to 8080 after update to version 1.5.0. --- 9:41:37 AM Starting pub serve : podium --- Loading source assets...…
Roger Chan
  • 1,293
  • 2
  • 11
  • 24
6
votes
1 answer

Generated Dart Editor web app not working

I just downloaded the latest version of the dart editor and did the following: 1) Created a new web application. When I try to run, I get the following error: > Failed to load resource: the server responded with a status of 404 > (Not Found) >…
shons
  • 61
  • 1
6
votes
2 answers

Package 'log4dart' is depended on from both sources 'hosted' and 'git'

Trying to review a tutorial from the following links: http://blog.dartwatch.com/2012/03/building-client-server-dart-app-part-1.html http://blog.dartwatch.com/2012/03/building-client-server-dart-app-part-2.html Here's my pubspec.yaml: name: …
Ed Michel
  • 898
  • 1
  • 11
  • 23
5
votes
1 answer

Dart import packages not working

Having an issue with importing packages in Dart now, the project was working yesterday but has stopped today and I have no clue why, the code hasn't changed all weekend and I don't recall running any updates. The problem exists with anything with…
trvo
  • 665
  • 1
  • 10
  • 23
5
votes
2 answers

Webstorm or Dart Editor. Which one is more mature

In the beginning I want to mark that this is not a regular IDE vs IDE question, because Dart is still in it's infancy, and It's not about which is better but which is more recent. There are only two decent Dart IDEs for now. Dart Editor and…
Krzysztof Wende
  • 3,208
  • 25
  • 38
5
votes
2 answers

Dart Editor bitwise XOR showing as unknown

The current version of Dart Editor is showing the bitwise XOR operator as not defined for class bool I don't see it defined in num.dart either. Ex: bool x = a ^ b; The editor shows the "Caret" as not defined. Update: Dart's api spec only allows…
EndlessLife
  • 319
  • 3
  • 13
1
2 3
13 14