1. 16 May, 2016 2 commits
  2. 07 May, 2016 1 commit
    • Adam Barth's avatar
      Move TextAlign out of TextStyle (#3789) · ee903af0
      Adam Barth authored
      TextAlign applies to a whole paragraph instead of applying to an individual
      text span. This patch moves the property out of TextStyle and into a separate
      property on Text and RichText.
      ee903af0
  3. 20 Apr, 2016 1 commit
    • Ian Hickson's avatar
      Hide routes from the API when they're not needed. (#3431) · 1b9476c4
      Ian Hickson authored
      The 'routes' table is a point of confusion with new developers. By
      providing a 'home' argument that sets the '/' route, we can delay the
      point at which we teach developers about 'routes' until the point where
      they want to have a second route.
      1b9476c4
  4. 24 Mar, 2016 1 commit
    • Hixie's avatar
      Support hairline borders · 9fc29dbb
      Hixie authored
      Previously, border with '0' was ambiguous. Sometimes we treated it as
      hairline borders, sometimes as "don't show the border", though even in
      the latter case we did some graphics work sometimes. Now we have an
      explicit BorderStyle.none flag to not draw the border efficiently.
      9fc29dbb
  5. 14 Mar, 2016 1 commit
  6. 13 Mar, 2016 3 commits
  7. 12 Mar, 2016 3 commits
  8. 09 Mar, 2016 1 commit
    • Adam Barth's avatar
      Remove //examples/widgets · e4b1eab8
      Adam Barth authored
      Most of the remaining widget examples are actually manual tests. This patch
      moves them into //dev/manual_tests. A couple are examples of using services,
      which I've moved to //examples/layers/services. The remainder are out-dated and
      are removed by this patch.
      e4b1eab8
  9. 11 Feb, 2016 2 commits
    • Hixie's avatar
      Provide a Draggable that starts on drag · 8e279f32
      Hixie authored
      This lets it cooperate with other gestures like tap.
      
      The way I implemented this was to refactor the entire Draggable gesture
      logic to use a new kind of gesture detector called
      MultiDragGestureRecognizer. It works a bit like
      MultiTapGestureRecognizer but for drags.
      
      Also some tweaks to the velocity estimator.
      8e279f32
    • Ian Hickson's avatar
      Clean up imports and exports. · a94999ba
      Ian Hickson authored
      Each layer is supposed to reexport the parts of the previous layer
      that are part of its API.
      
      - In painting.dart, export from dart:ui all the Canvas-related APIs
        that make sense to be used at higher levels, e.g. PaintingStyle.
      
      - Delete painting/shadows.dart. It was dead code.
      
      - In rendering/object.dart, export all of painting.dart.
      
      - In widgets/basic.dart, export all of painting.dart and
        animation.dart. Some classes in animation/ are renamed to make this
        less disruptive and confusing to the namespace.
      
      - Split out Stocks back into an import model rather than a part model,
        so that it's easier to manage its dependencies on a per-file basis.
      
      - Move Ticker to scheduler library.
      
      - Remove as many redundant imports as possible now.
      
      - Some minor nit picking cleanup in various files.
      a94999ba
  10. 09 Feb, 2016 1 commit
  11. 11 Jan, 2016 1 commit
  12. 08 Dec, 2015 1 commit
    • Ian Hickson's avatar
      Make BoxDecoration replaceable. · 2afa87df
      Ian Hickson authored
      Factor out a reusable interface called Decoration from BoxDecoration.
      
      Make all the consumers of BoxDecoration and the erstwhile BoxPainter
      into consumers of Decoration.
      
      Make a BoxPainter be something you get from a Decoration, rather than
      something to which you pass a BoxDecoration.
      
      Rename Shape to BoxShape now that it's documented specifically as
      applying to boxes.
      
      Move EdgeDims to its own file.
      
      Move FractionalOffset up so that it's with the other helper classes in
      its file rather than alone at the end.
      
      Minor change to RenderClipOval's hit testing to avoid taking an
      unnecessary square root.
      
      Rename BoxDecorationPosition to DecorationPosition since
      RenderDecoratedBox now takes any Decoration.
      
      Implement hit testing for rounded rects.
      
      Rename AnimatedBoxDecorationValue to AnimatedDecorationValue, and make
      it support lerping across any Decoration (by deferring to the objects
      involved).
      2afa87df
  13. 16 Nov, 2015 1 commit
    • Hixie's avatar
      Fix some examples. · 5e221334
      Hixie authored
      - drag and drop was using the wrong draggables (long press vs short
        press).
      
      - navigation.dart wasn't using material correctly and so was ending up
        with some red text.
      
      - piano wasn't followig our style guide even a little.
      
      - date picker was not scrollable.
      5e221334
  14. 10 Nov, 2015 1 commit
  15. 05 Nov, 2015 1 commit
    • Hixie's avatar
      Make Draggable use gestures · 255ed0b9
      Hixie authored
      Draggable is now itself a gesture arena member. This means it won't
      conflict with other gesture recognisers in the same path.
      
      This also allows variants of Draggable that are triggered by other
      gestures.
      
      Also, some cleanup of DoubleTapGestureRecognizer, GestureDetector, and
      PrimaryPointerGestureRecognizer.
      
      Also, make MultiTapGestureRecognizer support a timeout for longpress.
      
      Also, make Draggable data be typed.
      
      Also, hide warnings about constructor warnings for now. Analyzer doesn't
      support them yet. (Have to do this on a per-line basis)
      
      Directions for future research:
       - animating the avatar (enter/exit transitions)
       - interaction with the navigator (canceling a drag on page navigation, etc)
       - double-tap draggable
      255ed0b9
  16. 27 Oct, 2015 1 commit
    • Ian Hickson's avatar
      Track scroll position · 8a900f90
      Ian Hickson authored
      - Change RouteArguments to pass the route's BuildContext rather than
        the Navigator. This caused the bulk of the examples/ and .../test/
        changes (those are mostly mechanical changes). It also meant I could
        simplify Navigator.of().
      
      - Make initState() actually get called when the State's Element is in
        the tree, so you can use Foo.of() functions there. Added a test for
        this also.
      
      - Provide a RouteWidget so that routes have a position in the Widget
        tree. The bulk of the route logic is still in a longer-lived Route
        object for now.
      
      - Make Route.setState() only rebuild the actual route, not the whole
        navigator.
      
      - Provided a Route.of().
      
      - Provided a Route.writeState / Route.readState API that tries to
        identify the clients by their runtimeType, their key, and their
        ancestors keys, up to the nearest ancestor with a GlobalKey.
      
      - Made scrollables hook into this API to track state. Added a test to
        make sure this works.
      
      - Fix the debug output of GestureDetector and the hashCode of
        MixedViewport.
      
      - Fixed ScrollableWidgetListState<T> to handle infinite lists.
      8a900f90
  17. 24 Oct, 2015 1 commit
    • Hixie's avatar
      Strong modeify the examples · a6c473ea
      Hixie authored
      This makes skyanalyzer also check the examples, and fixes everything it
      found there.
      a6c473ea
  18. 19 Oct, 2015 1 commit
  19. 10 Oct, 2015 1 commit
  20. 09 Oct, 2015 2 commits
  21. 06 Oct, 2015 1 commit
    • Adam Barth's avatar
      Simplify Scaffold · 89a09822
      Adam Barth authored
      Rather than using a custom render object, we can just use a Stack.
      89a09822
  22. 05 Oct, 2015 1 commit
    • Hixie's avatar
      Simplify the usage of Navigator's routes argument · 90a0f630
      Hixie authored
      (These are changes cherry-picked from in-flight branches since they are
      more independent and could be helpful even without those changes.)
      
      - Change RouteBuilder's signature to take a single argument in which the
        other fields are placed, so that we can keep iterating on those
        arguments without having to break compatibility each time. Also, this
        makes defining route builders much simpler (only one argument to
        ignore rather than a variable number).
      
      - Expose the next performance to RouteBuilders, since sometimes the
        route itself might not be where it's used.
      
      - Allow BuildContext to be used to walk children, just like it can for
        ancestors
      
      - Allow BuildContext to be used to get the Widget of the current
        BuildContext
      
      - Allow StatefulComponentElement to be referenced with a type
        specialisation so that you don't have to cast when you know what the
        type you're dealing with actually is.
      90a0f630
  23. 03 Oct, 2015 1 commit
  24. 02 Oct, 2015 1 commit
    • Hixie's avatar
      Draggable offsets and fix default drag feedback · 894a1ca0
      Hixie authored
      You can now set an offset that will be used for the hit testing for
      drops. (It doesn't move the feedback by default; use a Transform for
      that.) I also made the default feedback not be Opacity 0.5 always.
      894a1ca0
  25. 01 Oct, 2015 1 commit
  26. 30 Sep, 2015 1 commit
    • Hixie's avatar
      Draggable · a91dd07c
      Hixie authored
      Introduce a Draggable class that wraps all the logic of dragging
      something and dropping it on a DragTarget.
      
      Update examples/widgets/drag_and_drop.dart accordingly.
      
      Make the performance/transition part of routes optional.
      a91dd07c
  27. 24 Sep, 2015 3 commits
  28. 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
  29. 18 Sep, 2015 1 commit
    • 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
  30. 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
  31. 22 Aug, 2015 1 commit