flutter/examples
Eric Seidel a0609d1f4e Make it possible to custom-paint without an Element.
This adds a new abstract 'Canvas' which is similar to SkCanvas.
PaintContext implements Canvas while still having its
own commit() method to cause the paint actions to apply to
the Element for the next frame.
This adds a new PictureRecorder which also implements Canvas
and has an endRecording() method which returns a Picture
(another new interface) which can be held from Dart.

There is also now a rootPicture setter on Document which takes
a Picture and will then make the Document draw that Picture
until changed.

This piggybacks on the existing custom painting system
which adds the painting at background-and-borders paint
time so technically if you both set rootPicture as well as
construct a DOM you will draw the DOM on top of your picture. :)

R=mpcomplete@chromium.org

Review URL: https://codereview.chromium.org/1122423009
2015-05-13 13:16:47 -07:00
..
color Add pubspec.yaml files for each of the examples/ directories 2015-04-28 16:26:38 -07:00
hello_world Add pubspec.yaml files for each of the examples/ directories 2015-04-28 16:26:38 -07:00
raw Make it possible to custom-paint without an Element. 2015-05-13 13:16:47 -07:00
stocks [Effen] Use the checkbox widget in the stocks app. 2015-05-12 14:39:43 -07:00
widgets Add pubspec.yaml files for each of the examples/ directories 2015-04-28 16:26:38 -07:00
home.sky Stop rendering text inside flex boxes. 2015-04-09 11:40:03 -07:00
README.md Add pubspec.yaml files for each of the examples/ directories 2015-04-28 16:26:38 -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.