1. 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
  2. 18 Sep, 2015 3 commits
    • Hixie's avatar
      Introduce a showPopupMenu() function · a3ae46b9
      Hixie authored
      Instead of having to manage the popup menu from your app's build
      function, you now just call showPopupMenu() with the menu's position and
      it takes care of everything for you.
      
      This solves the problem that the popup menu was trying to mutate the
      state of the navigator from within its own initState() function.
      
      Also, remove the "route" argument to RouteBase.build() since it equals
      "this" by definition...
      
      Also, remove ModalOverlay, and instead put that logic in the navigator.
      a3ae46b9
    • Hixie's avatar
      Require that you pass transitions a performance. · e73bbd94
      Hixie authored
      This fixes #1103.
      e73bbd94
    • Adam Barth's avatar
      Move theme into material.dart · 4467a268
      Adam Barth authored
      Also, introduce Colors and Typography to hold the material colors and the
      typography declarations. Previously we expected clients of these libraries to
      import them into a namespace, but that doesn't play nice with re-exporting them
      from material.dart.
      4467a268
  3. 17 Sep, 2015 1 commit
  4. 08 Sep, 2015 1 commit
    • Adam Barth's avatar
      Introduce package:sky/animation.dart · b356d146
      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.
      b356d146
  5. 07 Sep, 2015 1 commit
  6. 26 Aug, 2015 1 commit
    • Hixie's avatar
      Replace Flex to Row and Column in tests and examples. · ce28a717
      Hixie authored
      This still leaves Flex and FlexDirection available. At some point once
      people have transitioned to Row/Column we should rename Flex to _Flex
      and stop reexporting FlexDirection from basic.dart.
      ce28a717
  7. 22 Aug, 2015 3 commits
  8. 21 Aug, 2015 2 commits
  9. 19 Aug, 2015 3 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
      Add package:sky/rendering.dart · dea3a092
      Adam Barth authored
      Similar to widgets.dart, rendering.dart exports the entire rendering layer.
      Also, update the examples to use rendering.dart and widgets.dart. Also clean up
      some exports so that the examples have more sensible imports.
      dea3a092
    • 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
  10. 11 Aug, 2015 2 commits
  11. 08 Aug, 2015 1 commit
  12. 26 Jun, 2015 1 commit
  13. 09 Jun, 2015 1 commit
    • Eric Seidel's avatar
      Move image loading out of C++ into Dart · 6b3840e3
      Eric Seidel authored
      We already know how to talk to the network_service from Dart
      via fetch.dart.  Might as well use that for Image loading
      as well insetad of having ImageLoader do it.
      
      As part of this I've renamed *ImageLoader to *ImageDecoder
      and moved all the image loading logic into Dart.  This required
      me to teach the idl system about mojo handles so that I could
      pass the resulting MojoHandle from fetch.dart up through to
      ImageDecoder.
      
      R=abarth@chromium.org, jackson@google.com, hansmuller@google.com
      
      Review URL: https://codereview.chromium.org/1173703002.
      6b3840e3
  14. 19 May, 2015 3 commits
  15. 15 May, 2015 1 commit
  16. 14 May, 2015 2 commits
  17. 12 May, 2015 1 commit
    • Hixie's avatar
      [Effen] Use the checkbox widget in the stocks app. · 09183a7f
      Hixie authored
      - add a checkbox to the stock app, so that we're testing the checkbox widget
        (it's not currently wired up to anything, that can come later)
      - make InkSplash use FlexContainer so that we can use flex in the popup menu items
      - make effen's Text be more similar to Image and Container, so that it can be styled
      - make layout.dart's RenderCSSText correctly support being styled
      - also fixes a bug with the stock list where we were rendering one too few a row when scrolling
      - check in the code to dump the DOM so I don't have to keep remembering how to do this
      
      R=eseidel@chromium.org
      
      Review URL: https://codereview.chromium.org/1134163003
      09183a7f
  18. 04 May, 2015 1 commit
  19. 21 Apr, 2015 3 commits
    • Hixie's avatar
      fix 'feeback' typo in stock app in menus · ab3b684f
      Hixie authored
      TBR=eseidel
      
      Review URL: https://codereview.chromium.org/1065653009
      ab3b684f
    • Hixie's avatar
      [Effen] fix warnings · 43988833
      Hixie authored
      remove members that are never read
      remove imports that are never used
      
      R=eseidel@chromium.org
      
      Review URL: https://codereview.chromium.org/1099203002
      43988833
    • Hixie's avatar
      [Effen] Prevent scrolling past the bottom of a scrollable list. · ebc879ba
      Hixie authored
      - make the ScrollBehavior instance long-lived, rather than recreating
        it each time we update the list contents.
      - have OverscrollBehavior track the total height of the contents and
        the height of the scrollable region, so that it can determine when
        to stop scrolling down.
      - teach OverscrollBehavior about how to determine when to stop
        scrolling down, and how to bounce when it's too far down.
      - replace the 'energy' concept in Particles with a method that sets
        the energy and direction at the same time, instead of assuming that
        the direction is always positive when setting energy.
      - make FixedHeightScrollable lists track the number of items in the
        list and have them update their ScrollBehavior regarding this
        information as it changes.
      - track how many items are currently showing in the list stock list.
      
      R=eseidel@chromium.org
      
      Review URL: https://codereview.chromium.org/1097373002
      ebc879ba
  20. 20 Apr, 2015 1 commit
    • Hixie's avatar
      [Effen] Only skip rows we're showing, when skipping past the rows that we've... · 23283319
      Hixie authored
      [Effen] Only skip rows we're showing, when skipping past the rows that we've scrolled beyond in the stock list.
      
      Currently, if you then scroll down N items with a filter set, we select which
      stock to show by taking the entire list of stocks, skipping the first N, then
      filtering the list, then selecting as many stocks as needed to fill the list.
      
      So suppose the list is A, B, Cx, Dx, Ex, F, and the filter is "x", and you've
      scrolled down 1 item.
      
      Currently we'd show Cx, Dx, Ex.
      
      Scroll down 1 again.
      
      We still show Cx, Dx, Ex.
      
      What we _should_ show is Dx, Ex if you've scrolled down 1, and just Ex if you've
      scrolled two.
      
      This patch fixes this. We now skip rows _after_ filtering. This fixes
      the bug whereby if you set a filter then fling the list, we show the
      same item over and over as if in a loop.
      
      R=eseidel@chromium.org
      
      Review URL: https://codereview.chromium.org/1057603006
      23283319
  21. 06 Apr, 2015 1 commit
    • Ojan Vafai's avatar
      Remove all uses of display:block and display:inline-block. · a03a911e
      Ojan Vafai authored
      -Make display:flex, flex-direction: column, flex-shrink: 1 the default.
      -Simplify StyleAdjuster::adjustStyleForAlignment to remove special cases we
      won't need as we make flex the default and remove absolute positioning.
      -Fix a bug this exposed in column flexboxes where we'd apply the wrong edge
      of border/padding/margin.
      -For now leave the default of align-items:stretch. The main change here is
      that iframe/img will do width:auto the same as blocks (i.e. the width of
      the parent). I think this is a good change, but we'll have to see how it feels
      in practice.
      
      R=eseidel@chromium.org
      
      Review URL: https://codereview.chromium.org/1061163002
      a03a911e
  22. 01 Apr, 2015 1 commit
  23. 26 Mar, 2015 1 commit