Skip to main content

Posts

Showing posts from March, 2017

New site for Dart news and articles

For the latest Dart news, visit our new blog at  https://medium.com/dartlang .

Making a Dart web app offline-capable: 3 lines of code

Another article about Dart from Istvan Soos is about Progressive Web Apps, published today . — Filip Hracek Have you ever tried to load a web application (maybe a game or a measurement converter) and couldn’t use it because the network was down? That’s an awful experience, but luckily we have the technology to make such apps available for our users. For most apps and games, this can be done with 3 lines of Dart code and 1 command in the terminal. In this short article I’ll guide you through the steps, and make sure that you can always play Pop, Pop, Win! Pop, Pop, Win! ( code ) — a Minesweeper implementation in Dart. Service workers A service worker is a JavaScript file that runs in the background. It can control the web page or the site it is associated with, intercepting and modifying navigation and resource requests, and caching resources in a very granular fashion. It is a non-intrusive web technology: service workers can improve the user experience if the browser suppor...

From GWT to AngularDart: a case study with source code

Lots of interesting articles about Dart have been cropping up on Medium.com lately. We've decided to cross post them here so that followers of this blog won't miss out on them. We'll start by Istvan Soos's GWT-to-Dart case study , published on Friday. — Filip Hracek Earlier this year I was asked if there’s a good way to compare developing web UIs in Google Web Toolkit  (GWT) vs. Dart , specifically AngularDart . Having worked with both GWT and Dart, I had a good idea of the differences, but as I thought more, I started to wonder how hard it would be to migrate a GWT application to AngularDart. This article describes what I’ve found while doing just that. The GWT Mail Sample  was an ideal place to start: it’s much more than a trivial example, with diverse features and complex UI interactions, yet it’s still manageable in size. If you’re in a hurry, take a look at the working demo  and the source code , or scroll to the bottom for the conclusions. Screenshot o...