mirror of
https://github.com/flutter/flutter
synced 2024-10-14 04:02:56 +00:00
a0609d1f4e
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 |
||
---|---|---|
.. | ||
color | ||
hello_world | ||
raw | ||
stocks | ||
widgets | ||
home.sky | ||
README.md |
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
.
-
Hello, world. The hello world app is a basic app that shows the text "hello, world."
-
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.
-
Widgets. The widgets app contains a number of Sky widgets so you can experiment with them in a simple container.