wood burning stoves*
The moose likes HTML, CSS and JavaScript and the fly likes Integrating Dart applications with Desktop applications Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Integrating Dart applications with Desktop applications" Watch "Integrating Dart applications with Desktop applications" New topic
Author

Integrating Dart applications with Desktop applications

Fernando Carvalho
Greenhorn

Joined: Feb 13, 2013
Posts: 7
I would like to know if there is any documentation covering how to create Desktop applications with Dart.
Chris Buckett
author
Greenhorn

Joined: Feb 12, 2013
Posts: 16
    
    5

No, and Yes!

Ok, so it depends what you mean by desktop app. If you mean something that compiles Dart code to a native .exe or binary, and has bindings for things like QT, Swing or WPF, then no, you can't build a "desktop app" with Dart.

On the other hand, if your definition of a desktop app is an app that can be installed, has it's own icon on the desktop, runs independently of a web browser, then the answer is definately Yes - using Chrome Packaged Apps.

Chrome Packaged Apps allow you to use modern web technologies to write an offline/online application in HTML, CSS, Dart/JavaScript. They are hosted in a Chrome process, but not within the Chrome browser itself. They get access to a wider range of APIs, such as USB, Serial ports, filesystem etc.. You can install chrome packaged apps for Win / Mac / Linux (from the same source-code). They have their own "skin", ie, they aren't visibly running inside a web browser. This gives you a "native" feel to the app, whilst still being able to write the app using web technologies.

(The book, Dart in Action has a chapter dedicated to using Dart to build an "offline first" application, and installing it in Chrome. The Chrome Package App is the next step on from this).

Want a demo... check out a recent blog post which contains a few video clips, some instructions, and a link to the Chrome Packaged Apps developer documentation.


Chris.
- my DartWatch blog
Sign up for the - Dart Weekly Newsletter
- Read my book Dart in Action
 
jQuery in Action, 2nd edition
 
subject: Integrating Dart applications with Desktop applications
 
Similar Threads
* Welcome Chris Buckett
Standalone applications
When Dart will be available by Default in Google Chrome?
which Linux flavour is good
Ruby - Desktop Applications