1. 30 Jan, 2018 1 commit
  2. 24 Jan, 2018 1 commit
  3. 14 Dec, 2017 1 commit
  4. 08 Dec, 2017 1 commit
  5. 22 Nov, 2017 1 commit
    • Ian Hickson's avatar
      Popup menus RTL (#13110) · 34ba6be9
      Ian Hickson authored
      This fixes the popup menu code to do a better job of expanding
      smoothly regardless of which side of the screen it's on. It still
      results in a bidirection growth when positioned at the bottom of the
      screen, so maybe we'll need to animate menus differently, but that's
      a problem for another patch.
      
      Also, improve some docs and provide RelativeRect.toSize which I needed
      at one point while building this patch (though it didn't survive all
      the way to the end).
      34ba6be9
  6. 02 Oct, 2017 1 commit
    • Adam Barth's avatar
      Add Alignment, which will replace FractionalOffset (#12342) · 2b126bcd
      Adam Barth authored
      Unlike FractionalOffset, Alignment uses the center as the zero of the
      coordinate system, which makes the RTL math work out much cleaner.
      
      Also, make FractionalOffset into a subclass of Alignment so that clients
      can continue to use FractionalOffset.
      2b126bcd
  7. 12 Sep, 2017 1 commit
  8. 11 Sep, 2017 1 commit
  9. 01 Aug, 2017 1 commit
    • perlatus's avatar
      PopupMenuButton: create IconButton if child is Icon (#10230) · d1b222be
      perlatus authored
      * PopupMenuButton: create IconButton if child is Icon
      
      Otherwise the resulting button has an abnormally small and rectangular
      area. With multiple PopupMenuButton(child: Icon) they get squished
      together in the AppBar.
      
      * Add separate icon argument to PopupMenuButton
      
      * Fix style issues and tweak dartdocs
      
      * Add tests for icon argument to PopupMenuButton
      
      * Group icon tests and fix broken test, analyzer warnings
      
      * Test that the correct custom icon is present
      
      * Apply De Morgan's to work around dart analyzer bug
      
      see: https://github.com/dart-lang/sdk/issues/30288
      d1b222be
  10. 12 Jun, 2017 1 commit
  11. 31 May, 2017 1 commit
    • Ian Hickson's avatar
      Docs for menus (#10396) · ccad2849
      Ian Hickson authored
      Also, clean up the menus code a bit.
      
      Also, make it easier to write a PopupMenuEntry that has itself many
      items (for example, the way Chrome's menu has icons in a row).
      ccad2849
  12. 27 May, 2017 1 commit
    • Ian Hickson's avatar
      Much work on the documentation (#10331) · f50caddf
      Ian Hickson authored
      Minor fixes throughout, e.g. removing trailing commas from the end of sample code expressions, changing headings to "sample code" more consistently, removing stale todos, fix typos in a private method name, minor grammar fixes, added some clarifications to CircularProgressIndicator, LinearProgressIndicator, CrossAxisAlignment, added some cross-references to various members, made it slightly clearer that layout algorithms are implementation details.
      
      Clarified "elevation" throughout.
      
      Added docs to InkResponse and InkWell.
      
      Added sample code for: SliverAppBar, Card, ListTile, EdgeInsets, Row, Column, CustomScrollView, ListView, SliverFixedExtentList, and SliverGrid.
      
      Fixes #10317.
      Fixes #10316.
      Fixes #10267. (sort of, see comment therein)
      Fixes #9331. (sort of, see comment therein)
      Fixes #9407. (sort of, see comment therein)
      f50caddf
  13. 21 May, 2017 1 commit
  14. 03 May, 2017 1 commit
  15. 02 May, 2017 1 commit
  16. 23 Apr, 2017 1 commit
  17. 20 Apr, 2017 1 commit
  18. 13 Apr, 2017 1 commit
  19. 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
  20. 11 Apr, 2017 1 commit
    • xster's avatar
      Rename State.config to widget everywhere (#9273) · 89a7fdfc
      xster authored
      Rename State.config to State.widget
      Rename State.didUpdateConfig to State.didUpdateWidget
      Renamed all State subclasses' local variables named config to something else
      89a7fdfc
  21. 08 Apr, 2017 1 commit
  22. 07 Apr, 2017 1 commit
  23. 05 Apr, 2017 1 commit
  24. 31 Mar, 2017 1 commit
  25. 20 Mar, 2017 1 commit
  26. 14 Mar, 2017 1 commit
  27. 04 Mar, 2017 1 commit
  28. 24 Feb, 2017 1 commit
    • Adam Barth's avatar
      Add a `color` argument to `Container`. (#8396) · f20c3d10
      Adam Barth authored
      It's common to just want a simple colored box. Simple thing should be simple,
      so this patch adds a convenience argument to Continer for creating a box
      decoration that is just a color.
      
      Fixes #5555
      f20c3d10
  29. 23 Feb, 2017 1 commit
  30. 02 Feb, 2017 2 commits
  31. 31 Jan, 2017 1 commit
  32. 23 Jan, 2017 1 commit
  33. 22 Jan, 2017 1 commit
  34. 09 Dec, 2016 1 commit
  35. 01 Dec, 2016 1 commit
  36. 19 Nov, 2016 1 commit
  37. 03 Nov, 2016 2 commits
  38. 17 Oct, 2016 1 commit
    • Adam Barth's avatar
      Fix DropdownButton regression (#6353) · 6399a3af
      Adam Barth authored
      When I changed how routes complete their futures, I broke the Dropdown
      button because it was still waiting for its own Completer to complete
      instead of using the Future returned by push. This patch fixes that
      issue.
      
      I've also removed the previous behavior of the DropdownButton forwarding
      its text style to its route. The mechansim that we were using doesn't
      work properly in all cases. For example, if the DropdownButton is a
      child of a LayoutBuilder, then the route will have already built by the
      time the DropdownButton gets a chance to forward its text style, causing
      an assert in setState.
      
      Finally, I've tweaked PopupMenuButton to work the same way as
      DropdownButton in a couple corner cases (e.g., not calling the changed
      callback if the button was removed from the tree before the menu
      completed its Future).
      
      Fixes #6352
      6399a3af