1. 20 Oct, 2015 2 commits
  2. 19 Oct, 2015 3 commits
    • Hixie's avatar
      requestPostFrameCallback() · ed195cfa
      Hixie authored
      Provide a way to schedule a callback for immediately after the current
      frame has been sent to the GPU thread. This is useful for times where
      you want to immediately schedule yourself for another build or layout
      because, for instance, you just displayed frame zero of an animation and
      you want to use the metrics from that layout to set up the actual
      animation to begin immediately, such that the very next frame is frame 1.
      ed195cfa
    • Adam Barth's avatar
      Show ColorFilter · 40942233
      Adam Barth authored
      Instead of requiring clients to use ui.ColorFilter, we show show the
      ColorFilter class, similar to what we do for Color.
      40942233
    • Adam Barth's avatar
      Add a MaterialList · 284eaa9c
      Adam Barth authored
      A MaterialList understands the sizing, padding, and scrollbar features of
      Material Design lists.
      
      Also, add CircleAvatar for showing the circular avatars that are commonly used
      in material lists.
      284eaa9c
  3. 18 Oct, 2015 1 commit
    • Hixie's avatar
      toString()ify more stuff · 7c0c1c96
      Hixie authored
      - truncate pixel values to 1dp since there's really no point being told
        the Size is 302.98732587287 by 648.28498579187.
      
      - describe more Widgets so that debugDumpApp() is more useful.
      
      - remove bufferValue from ProgressIndicator (cc @hansmuller) since it's
        not yet implemented.
      
      - half-hearted toString() for ThemeData. There's no point making a
        complete one, since it would cause line-wrap even on big monitors in
        debugDumpApp dumps, and you can easily get the actual values from a
        debugging if that's the issue.
      
      - flesh out BoxConstraints.toString() so that fully unconstrained and
        fully infinite constraints are called out explicitly. I experimented
        with adding even more special cases, e.g. calling out unconstrained
        widths with fixed heights, etc, but it made the output less readable.
      
      - remove a redundant _updateVariable() in AnimatedContainer (cc
        @abarth).
      
      - add more information to RenderView.toString().
      7c0c1c96
  4. 16 Oct, 2015 2 commits
  5. 12 Oct, 2015 1 commit
    • Hixie's avatar
      Lots of trivial warning fixes · f2cc43a4
      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.
      f2cc43a4
  6. 10 Oct, 2015 3 commits
  7. 09 Oct, 2015 1 commit
  8. 06 Oct, 2015 2 commits
    • Adam Barth's avatar
      ToolBar with a TabBar shouldn't have a shadow · 6cf105fe
      Adam Barth authored
      This patch makes the level of the ToolBar configurable. I've also cleaned up
      the Tab code slightly.
      
      For some reason, there's still a hairline between the ToolBar and the TabBar.
      We might need to rethink how we draw the background a bit here.
      
      Fixes #1454
      6cf105fe
    • Adam Barth's avatar
      Mark most State subclasses private · 922aece1
      Adam Barth authored
      In the vast majority of cases, folks should be interacting with the Widget
      rather than its State.
      
      Fixes #267
      922aece1
  9. 05 Oct, 2015 2 commits
  10. 03 Oct, 2015 1 commit
    • Adam Barth's avatar
      RenderInkWell should use gestures · cf889934
      Adam Barth authored
      After this patch, InkWell is driven by gesture recognizers, which lets us
      cleanly cancel splashes when the user actually scrolls.
      
      I've also refactored all the clients of InkWell to use InkWell to detect
      gestures instead of wrapping InkWell in a GestureDetector.
      
      Fixes #1271
      cf889934
  11. 01 Oct, 2015 1 commit
  12. 29 Sep, 2015 1 commit
  13. 21 Sep, 2015 1 commit
    • Adam Barth's avatar
      Remove EventDisposition · 051354ae
      Adam Barth authored
      All the use cases for EventDisposition are now addressed by the gesture
      detection system.
      051354ae
  14. 18 Sep, 2015 2 commits
  15. 08 Sep, 2015 2 commits
  16. 02 Sep, 2015 1 commit
    • Adam Barth's avatar
      Move widgets and rendering inside src · 693ddcd8
      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.
      693ddcd8
  17. 28 Aug, 2015 1 commit
  18. 25 Aug, 2015 3 commits
  19. 24 Aug, 2015 1 commit
    • Hans Muller's avatar
      Support ScrollableLists that wrap · c21fcf62
      Hans Muller authored
      Adds itemsWrap:bool (default false) to ScrollableList and PageableList. If itemsWrap is true then scrolling past the last item wraps around to the first. Similarly, scrolling before the first item wraps around to the last.
      
      Added abstract ExtentScrollBehavior of ScrollBehavior. Renamed fields called contentsExtents to contentExtent, containerExtents to containerExtent, contentSize to contentExtent, etc.
      
      BoundedBehavior is now a subclass of ExtentScrollBehavior.
      
      Added UnboundedBehavior subclass of ExtentScrollBehvaior; contentExtent and maxScrollOffset are double.INFINITY, minScrollExtent is double.NEGATIVE_INFINITY.
      c21fcf62
  20. 22 Aug, 2015 2 commits
  21. 19 Aug, 2015 2 commits
    • Hans Muller's avatar
      Adds PageableList, other scrolling related changes and fixes · 7782a115
      Hans Muller authored
      - 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.
      7782a115
    • Adam Barth's avatar
      Split box.dart into many files · 50bfdedb
      Adam Barth authored
      Sadly, box.dart has grown much longer than 1000 lines. This patch splits it up
      into several files based on the class hierarchy. Fortunately, many of these
      classes are loosely coupled to each other.
      50bfdedb
  22. 17 Aug, 2015 1 commit
  23. 13 Aug, 2015 2 commits
  24. 11 Aug, 2015 1 commit
    • Hans Muller's avatar
      Adds ensureWidgetIsVisible() function to scrollable.dart · 9e9d845b
      Hans Muller authored
      Set the scrollOffset of a widget's Scrollable ancestor so that the
      widget is centered within the scrollable. A future CL will add
      support for specifying exactly where the widget appears. The scroll
      can be animated by specifying the animation: parameter.
      
      Changed the duration Scrollable.scrollTo() parameter from a Duration
      to an AnimationPerformance so that one can configure all aspects of
      the animation. The caller may also listen to the animation to schedule
      other work while it updates or when its status changes.
      complete
      9e9d845b
  25. 10 Aug, 2015 1 commit