1. 12 Apr, 2017 1 commit
    • Ian Hickson's avatar
      Move Point to Offset (#9277) · bf017b79
      Ian Hickson authored
      * Manually fix every use of Point.x and Point.y
      
      Some of these were moved to dx/dy, but not all.
      
      * Manually convert uses of the old gradient API
      
      * Remove old reference to Point.
      
      * Mechanical changes
      
      I applied the following at the root of the Flutter repository:
      
      git ls-files -z | xargs -0 sed -i 's/\bPoint[.]origin\b/Offset.zero/g'
      git ls-files -z | xargs -0 sed -i 's/\bPoint[.]lerp\b/Offset.lerp/g'
      git ls-files -z | xargs -0 sed -i 's/\bnew Point\b/new Offset/g'
      git ls-files -z | xargs -0 sed -i 's/\bconst Point\b/const Offset/g'
      git ls-files -z | xargs -0 sed -i 's/\bstatic Point /static Offset /g'
      git ls-files -z | xargs -0 sed -i 's/\bfinal Point /final Offset /g'
      git ls-files -z | xargs -0 sed -i 's/^\( *\)Point /\1Offset /g'
      git ls-files -z | xargs -0 sed -i 's/ui[.]Point\b/ui.Offset/g'
      git ls-files -z | xargs -0 sed -i 's/(Point\b/(Offset/g'
      git ls-files -z | xargs -0 sed -i 's/\([[{,]\) Point\b/\1 Offset/g'
      git ls-files -z | xargs -0 sed -i 's/@required Point\b/@required Offset/g'
      git ls-files -z | xargs -0 sed -i 's/<Point>/<Offset>/g'
      git ls-files -z | xargs -0 sed -i 's/[.]toOffset()//g'
      git ls-files -z | xargs -0 sed -i 's/[.]toPoint()//g'
      git ls-files -z | xargs -0 sed -i 's/\bshow Point, /show /g'
      git ls-files -z | xargs -0 sed -i 's/\bshow Point;/show Offset;/g'
      
      * Mechanical changes - dartdocs
      
      I applied the following at the root of the Flutter repository:
      
      git ls-files -z | xargs -0 sed -i 's/\ba \[Point\]/an [Offset]/g'
      git ls-files -z | xargs -0 sed -i 's/\[Point\]/[Offset]/g'
      
      * Further improvements and a test
      
      * Fix minor errors from rebasing...
      
      * Roll engine
      bf017b79
  2. 06 Apr, 2017 1 commit
  3. 05 Apr, 2017 1 commit
    • Adam Barth's avatar
      Add Wrap (#9225) · 882c992b
      Adam Barth authored
      The Wrap widget is a layout that places children in a run in order along its
      main axis until it runs out of space. At that point, starts placing children in
      a new run that is adjacent in the cross axis.
      
      Fixes #8831
      882c992b
  4. 10 Mar, 2017 1 commit
  5. 04 Mar, 2017 1 commit
  6. 22 Nov, 2016 1 commit
    • Adam Barth's avatar
      Rename Flexible to Expanded and improve docs (#6978) · 8ca4caa4
      Adam Barth authored
      This patch replaces uses of Flexible with Expanded where we're using
      FlexFit.tight. We still need to think of a better name for the
      FlexFit.loose variant.
      
      Also, improve the docs for Row, Column, Flex, and RenderFlex to be more
      problem-oriented and to give a complete account of the layout algorithn.
      
      Fixes #6960
      Fixes #5169
      8ca4caa4
  7. 25 Oct, 2016 1 commit
  8. 19 Sep, 2016 1 commit
    • Adam Barth's avatar
      Change the definition of MainAxisSize (#5931) · e04135e9
      Adam Barth authored
      This property now applies only to the free space in the flex layout (i.e.,
      minimize or maximize the amount of free space). Previously, the flexible
      children were always allocated a size of zero when MainAxisSize was min. Now
      they're allocated the same size that would be if the MainAxisSize was max.
      e04135e9
  9. 16 Sep, 2016 1 commit
    • Adam Barth's avatar
      Add FlexFit.loose (#5908) · 3ed4960b
      Adam Barth authored
      Previously, flexible children were always required to fill their allocated
      space. After this change, they can fit loosely into that space and not fill it.
      When that happens, the remaining free space is allocated according to the
      maixAxisAlignment.
      
      Fixes #5858
      3ed4960b
  10. 15 Sep, 2016 1 commit
  11. 21 Jun, 2016 1 commit
  12. 08 Jun, 2016 1 commit
  13. 31 May, 2016 1 commit
  14. 27 May, 2016 1 commit
  15. 16 May, 2016 1 commit
  16. 12 May, 2016 1 commit
  17. 29 Apr, 2016 1 commit
    • Adam Barth's avatar
      Fix the padding and space for FlatButton and RaisedButton (#3650) · b2fa6c25
      Adam Barth authored
      Instead of incorporating the margin into the button, introduce a ButtonBar
      widget that supplies the proper spacing between the buttons. Also, make these
      buttons more configurable via ButtonTheme so that dialogs can change the
      minWidth and padding of the buttons as required by the spec.
      
      Fixes #1843
      Fixes #3184
      b2fa6c25
  18. 26 Apr, 2016 1 commit
  19. 24 Apr, 2016 1 commit
    • Adam Barth's avatar
      Add Flow layout · f53a5a52
      Adam Barth authored
      A flow layout is optimized for reposition children with transformation
      matrices. A flow layout can animate the position of its children very
      efficiently.
      f53a5a52
  20. 11 Apr, 2016 1 commit
    • Ian Hickson's avatar
      Add even more careful checks around BoxConstraints (#3243) · 47f5c6f2
      Ian Hickson authored
      I ran into a case where I was setting minHeight=∞ and then calling
      layout() with that constraint, which is all kinds of bad. To try to
      catch this earlier, this patch now provides a way to catch constraints
      that are requiring infinite values.
      
      We don't _always_ check this because there are valid uses for
      BoxConstraints.biggest, e.g. as an additionalConstraint.
      47f5c6f2
  21. 29 Mar, 2016 1 commit
    • Ian Hickson's avatar
      More elaborate exceptions. · aedf41bf
      Ian Hickson authored
      The elaboration will continue until morale improves.
      
      Specific exceptions considered here:
      
       - size setter checking when you set the size
       - layout verifying that you do set the size
       - hitTest verifying that you aren't dirty and have a size
       - flex complaining about canFlex
      aedf41bf
  22. 14 Mar, 2016 1 commit
  23. 13 Mar, 2016 1 commit
    • Adam Barth's avatar
      [rename fixit] Flex alignments · d5b2e2a0
      Adam Barth authored
      * justifyContent -> mainAxisAlignment
      * alignItems -> crossAxisAlignment
      * FlexJustifyContent -> MainAxisAlignment
      * FlexAlignItems -> CrossAxisAlignment
      
      Fixes #231
      d5b2e2a0
  24. 12 Mar, 2016 3 commits
  25. 24 Feb, 2016 1 commit
  26. 14 Feb, 2016 1 commit
  27. 10 Feb, 2016 1 commit
    • Hixie's avatar
      More BoxConstraints asserts · 29654016
      Hixie authored
      The asserting will continue until morale improves!
      
      * Convert all assert(*.isNormalized) checks to use the new
        debugAssertIsNormalized technology.
      * Convert CustomMultiChildLayout to use the new RenderingError
        technology to greatly improve the detail in errors you get when
        writing CustomMultiChildLayout delegates.
      * Add BoxConstraints.copyWith().
      * Indent the descendants in the rendering exception data dump so that
        when you have multiple children it's clearer what's going on.
      29654016
  28. 09 Feb, 2016 1 commit
  29. 27 Jan, 2016 1 commit
  30. 15 Jan, 2016 1 commit
  31. 02 Jan, 2016 1 commit
  32. 09 Dec, 2015 1 commit
    • Ian Hickson's avatar
      Catch un-normalized BoxConstraints · 1a049c14
      Ian Hickson authored
      Add BoxConstraints.isNormalized feature.
      
      Use this feature in asserts in all the intrinsic dimension methods, in
      various relevant BoxConstraints methods, and in layout().
      
      Wrap the _DebugSize logic in BoxConstraints.constrain() in an assert
      block to avoid a branch in release mode.
      
      Remove the logic in BoxConstraints.isSatisfiedBy() that dealt with
      non-normalized values.
      
      Add BoxConstraints.normalize().
      
      Make RenderCustomOneChildLayoutBox.performLayout() only set
      parentUsesSize on the child if the constraints aren't tight.
      1a049c14
  33. 03 Dec, 2015 1 commit
    • Adam Barth's avatar
      RenderFlex shouldn't assert when its out of space · 7e474f6d
      Adam Barth authored
      Previously, we would assert with FlexJustifyContent.collapse if we ran out of
      space. Now we do the same thing we do for the other types of justification,
      which is to let the children's layout overflow.
      7e474f6d
  34. 19 Nov, 2015 1 commit
  35. 05 Nov, 2015 1 commit
    • Adam Barth's avatar
      Improve hit testing · 9bc64540
      Adam Barth authored
      Now a RenderBox is considered hit if one of its children are hit or it itself
      decides that it's hit. In particular, empty space inside a flex won't be hit
      because none of the children are located there and a RenderFlex doesn't
      consider itself hittable.
      
      Fixes #53
      Fixes #1221
      9bc64540
  36. 04 Nov, 2015 1 commit
    • Hixie's avatar
      Get more debug info into the rendering layer · 6d389722
      Hixie authored
      - change how we expose settings at the RenderObject layer so that it's
        easier to maintain.
      - expose the Widget owner chain in the RenderObject layer debug output
      - add debug info to RenderOpacity, RenderIgnorePointer, RenderListener
      - make the output for text nodes prettier
      6d389722
  37. 03 Nov, 2015 1 commit
  38. 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