- 20 Oct, 2015 2 commits
-
-
Adam Barth authored
-
Adam Barth authored
The style we use for callbacks in widgets is "onFoo". These classes were using an order naming convention and just called their callbacks "callback".
-
- 16 Oct, 2015 1 commit
-
-
Hans Muller authored
-
- 14 Oct, 2015 1 commit
-
-
Hans Muller authored
Enabled displaying a scrollbar in ScrollingLists. The scrollbar is painted as an "overlay", i.e. it's painted on top of the scrolling list's visible children. Added an abstract Painter base class that encapsulates a paint method and the renderer that it's attached to. RenderBlockViewport and HomogenousViewport now support an overlayPainter property. If specified, RenderBlockViewport attaches itself to the overlayPainter when it's attached to the rendering tree. RenderBlockViewport now calls overlayPainter.paint() after it has painted its children. Added an abstract ScrollingListPainter class that exposes ScrollingList's state which might be needed for painting. Like its scroll direction and scrollOffset. The ScrollingListPainter is notified when a scroll starts and ends. Defined a Material-specific ScrollingListPainter that renders a scrollbar. The scrollbar thumb is faded in/out when the scroll starts/ends. Added onScrollStart and onScrollEnd listeners to Scrollable.
-
- 12 Oct, 2015 2 commits
-
-
Hixie authored
Add type annotations in many places. Fix some identifiers to have more lint-satisfying names. Make all operator==s consistent in style. Reorder some functions for consistency. Make ParentData no longer dynamic, and fix all the code around that.
-
Collin Jackson authored
-
- 10 Oct, 2015 3 commits
-
-
Adam Barth authored
-
Adam Barth authored
-
Adam Barth authored
-
- 09 Oct, 2015 1 commit
-
-
Adam Barth authored
These are now part of material.dart.
-
- 06 Oct, 2015 1 commit
-
-
Adam Barth authored
Fixes #900
-
- 05 Oct, 2015 2 commits
-
-
Hixie authored
Also, fix comment mentioning syncConstructorArguments.
-
Adam Barth authored
This patch folds the functionality from AnimatedSimulation into Timeline.
-
- 03 Oct, 2015 1 commit
-
-
Adam Barth authored
Rather than having two objects driving scrolling animations, we now have one object, a Timeline, drive both scrollTo and fling animations. Using Timeline instead of AnimatedSimulation paves the way to removing AnimatedSimulation (which is now used only inside the animation library). Finally, this patch also simplifies (and makes private) _TweenSimulation by using AnimatedValue to do the math.
-
- 01 Oct, 2015 1 commit
-
-
Adam Barth authored
-
- 30 Sep, 2015 1 commit
-
-
Adam Barth authored
Also, fix analyzer warning in fn2.
-
- 25 Sep, 2015 1 commit
-
-
Andrew Wilson authored
-
- 22 Sep, 2015 2 commits
-
-
Hixie authored
Since our build function depends on scrollBehavior.isScrollable, any time we update scrollBehavior we are implicitly updating our state. As such, we must do so during a setState() call, or else we won't rebuild and might not bother to listen to the scroll gestures. This probably broke when we made Block not listen to gestures if it wasn't overflowing.
-
Adam Barth authored
-
- 21 Sep, 2015 1 commit
-
-
Adam Barth authored
All the use cases for EventDisposition are now addressed by the gesture detection system.
-
- 17 Sep, 2015 1 commit
-
-
Adam Barth authored
This patch is part of a sequence of patches towards fewer top-level libraries. In this patch, the gesture libraries are combined into one gestures.dart library.
-
- 16 Sep, 2015 2 commits
-
-
Adam Barth authored
Please use GestureDetector instead.
-
Adam Barth authored
This fixes an issue in the stocks app in horizontal mode where you could both scroll and drag the drawer at the same time.
-
- 11 Sep, 2015 1 commit
-
-
Adam Barth authored
The gesture is now called "drag". The library name should match.
-
- 10 Sep, 2015 2 commits
-
-
Adam Barth authored
That way the fling engages in the same direction as the scroll. For example, if you have a horizontal scroll nested inside a vertical scroll, the fling will take place in the same direction as the scroll.
-
Adam Barth authored
Previously, if you used a number of nested Blocks, they'd each try to register drag gesture detectors even though they can't actually scroll. This CL teaches Scrollable to watch for drag gestures only when it can actually scroll.
-
- 09 Sep, 2015 1 commit
-
-
Hans Muller authored
Added FlingGestureRecognizer and exposed it in the GestureDetector class. FlingGestureRecognizer is based on the Android/Chromium VelocityTracker class which computes a velocity vector for for a list of X,Y,Time tuples. The Scrollable classes now use the FlingGestureRecognizer. Dismissable and Drawer still need to be updated
-
- 08 Sep, 2015 1 commit
-
-
Adam Barth authored
Move the animation libraries into src/animation and change importers to use package:sky/animation.dart. Also, move scheduler.dart into the animation library so that the animation library can be self-contained.
-
- 04 Sep, 2015 1 commit
-
-
Hans Muller authored
-
- 02 Sep, 2015 4 commits
-
-
Hans Muller authored
-
Hans Muller authored
-
Adam Barth authored
Code outside of package:sky should import this code using package:sky/rendering.dart package:sky/widgets.dart Moving this code into the "src" directory is a convention that signifies that and it cleans up the generated dartdoc because the libraries in the src directory aren't included in the generated documentation. Instead, the classes are documented in the widgets.dart and rendering.dart libraries.
-
Hans Muller authored
Makes PageableList with itemsWrap:true work again. Plumbed the itemsWrap parameter through to HomogenousViewport. Fixes issue #877.
-
- 31 Aug, 2015 1 commit
-
-
Hixie authored
Adds a HomogeneousViewport class that works like MixedViewport but handles only children that have all the same height. Converts ScrollableWidgetList to use that, so that we don't waste a frame looking at the size of the contents each time we change size. This allows a number of seemingly pointless double-pumps in the tests to be removed. Other changes that were necessary to support the above: - RenderBlock now supports minExtent (think 'min-height' in CSS) - RenderBlock now supports itemExtent (forces the height of each child to be the same, so that the itemExtent passed to the fixed- height scrollables are all authoritative instead of a source of bugs when they don't match) - RenderBlockViewport now supports horizontal scrolling - improved the style of the isInfinite assert in box.dart - fixed the position of a comment in mixed_viewport.dart - added a test - made the logic for how many items to show be more precise
-
- 29 Aug, 2015 1 commit
-
-
Adam Barth authored
We now have separate gestures for horizontal, vertical, and pan scrolling.
-
- 28 Aug, 2015 4 commits
-
-
Adam Barth authored
Instead, we pump a onScrollUpdate with the offset if there is an offset.
-
Hixie authored
-
Adam Barth authored
This patch replaces the scroll gestures used by Scrollable with ones detected by the ScrollGestureDetector.
-
Adam Barth authored
These gestures use the new gesture detection system.
-
- 27 Aug, 2015 1 commit
-
-
Eric Seidel authored
Also includes changes to widget_tester sufficient to test scrolling. @abarth
-