flutter/examples
Hans Muller 7782a11534 Adds PageableList, other scrolling related changes and fixes
- PageableList extends ScrollableList
One fixed width or height item is visible and centered at a
time. Fling and drag gestures scroll to the next/previous item.

- Scrollable.scrollTo(), Scrollable.scrollBy(), ensureWidgetIsVisible() API changed
The named animation parameter for these methods was replaced by
duration and curve. All of the methods now return a Future. The Future
completes when the scroll does.

This change eliminates the need for Scrollable to temporarily take ownership
of a ValueAnimation object (see #645).

- Using Future.then() instead of an AnimationPerformance status listener
In ensure_visible.dart _handleTap() uses ensureWidgetIsVisible() to
center the card roughly as before and then. When the implicit scroll
animation is complete, it changes the centered card's label font. The
change is made when the Future returned by ensureWidgetIsVisible()
completes.

- FixedHeightScrollable's itemHeight parameter is now itemExtent
If scrollDirection is ScrollDirection.vertical (the default) then itemExtent should
be the height of each item; otherwise it should be the width of each item.

Replaced _velocityForFlingGesture() in scrollable.dart with Scrollable._eventVelocity()
The original version clamped pixels/ms against pixels/sec constants. The new version
also deals with scrollDirection.

- Plumbed scrollDirection though FixedHeightScrollable and ScrollableList

Both classes should now support horizontal scrolling.
2015-08-19 10:14:21 -07:00
..
address_book Address book pubspec 2015-08-10 15:40:48 -07:00
demo_launcher Adds PageableList, other scrolling related changes and fixes 2015-08-19 10:14:21 -07:00
fitness Adds PageableList, other scrolling related changes and fixes 2015-08-19 10:14:21 -07:00
game Fixes loading of assets in demo game 2015-08-18 10:33:34 -07:00
hello_world Hello world pubspec 2015-08-10 15:46:32 -07:00
mine_digger Add package:sky/rendering.dart 2015-08-18 21:39:51 -07:00
raw Fix analyzer warnings 2015-08-17 14:32:29 -07:00
rendering Add package:sky/rendering.dart 2015-08-18 21:39:51 -07:00
stocks Adds PageableList, other scrolling related changes and fixes 2015-08-19 10:14:21 -07:00
widgets Adds PageableList, other scrolling related changes and fixes 2015-08-19 10:14:21 -07:00
BUILD.gn Update playfair revision 2015-08-19 09:05:30 -07:00
README.md Move example out of sky/packages to //examples 2015-08-07 17:04:50 -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.