flutter/examples/demo_launcher
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
..
apk Add release notes for SkyDemo.apk 0.0.23 2015-08-17 18:00:10 -07:00
assets Move example out of sky/packages to //examples 2015-08-07 17:04:50 -07:00
lib Adds PageableList, other scrolling related changes and fixes 2015-08-19 10:14:21 -07:00
BUILD.gn Move example out of sky/packages to //examples 2015-08-07 17:04:50 -07:00
pubspec.yaml Move example out of sky/packages to //examples 2015-08-07 17:04:50 -07:00
sky.yaml Move example out of sky/packages to //examples 2015-08-07 17:04:50 -07:00