Adam Barth 70b8347fe1 Hoist knowledge of image_cache into widgets/basic.dart
Previously, RenderImage knew about image_cache and expected to work in terms of
URLs. Now RenderImage works directly with sky.Image and it's the job of the
widgets system to interact with the network cache.

At the widgets layer, I've factored this work into three parts:
1) A wrapper for RenderImage that works in terms of sky.Image.
2) A component that can deal with any sort of Future<sky.Image>.
3) A NetworkImage component that translates relative URLs into
   Future<sky.Image> using the image_cache.

A future CL will add a peer to NetworkImage that gets Future<sky.Image>s from
an asset bundle.

R=ianh@google.com, jackson@google.com

Review URL: https://codereview.chromium.org/1218023013.
2015-07-01 14:41:45 -07:00
..
2015-06-27 00:00:18 -07:00
2015-06-27 00:41:27 -07:00
2015-06-26 22:52:40 -07:00

Sky Examples

This directory contains several examples of using Sky. Each of these is an individual Dart application package. If you wish to run them with sky_tool then you will want to run pub get inside their directory before running ./packages/sky/sky_tool start.

  1. Hello, world. The hello world app is a basic app that shows the text "hello, world."

  2. Stocks. The stocks app is an example of a typical mobile app built using Sky. The app shows a list of all the stocks in the NASDAQ.

  3. Widgets. The widgets app contains a number of Sky widgets so you can experiment with them in a simple container.