1. 20 Apr, 2018 1 commit
  2. 22 Mar, 2018 1 commit
    • Ian Hickson's avatar
      Clean up the existing Navigator API. (#15718) · aba0379d
      Ian Hickson authored
      This is not a grand refactor yet, it's just cleaning up what we have
      already, so that people who keep using this API (e.g. dialogs) have
      something coherent to deal with.
      
      The major changes are that Navigator and NavigatorState have the same
      API now, that most of the examples use `<void>` instead of `<Null>`,
      that the navigator observer can see replaces, and that the `settings`
      is moved from ModalRoute to Route. I also cleaned up some of the API
      documentation.
      aba0379d
  3. 30 Jan, 2018 1 commit
  4. 24 Jan, 2018 1 commit
  5. 14 Dec, 2017 1 commit
  6. 08 Dec, 2017 1 commit
  7. 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
  8. 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
  9. 12 Sep, 2017 1 commit
  10. 11 Sep, 2017 1 commit
  11. 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
  12. 12 Jun, 2017 1 commit
  13. 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
  14. 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
  15. 21 May, 2017 1 commit
  16. 03 May, 2017 1 commit
  17. 02 May, 2017 1 commit
  18. 23 Apr, 2017 1 commit
  19. 20 Apr, 2017 1 commit
  20. 13 Apr, 2017 1 commit
  21. 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
  22. 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
  23. 08 Apr, 2017 1 commit
  24. 07 Apr, 2017 1 commit
  25. 05 Apr, 2017 1 commit
  26. 31 Mar, 2017 1 commit
  27. 20 Mar, 2017 1 commit
  28. 14 Mar, 2017 1 commit
  29. 04 Mar, 2017 1 commit
  30. 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
  31. 23 Feb, 2017 1 commit
  32. 02 Feb, 2017 2 commits
  33. 31 Jan, 2017 1 commit
  34. 23 Jan, 2017 1 commit
  35. 22 Jan, 2017 1 commit
  36. 09 Dec, 2016 1 commit
  37. 01 Dec, 2016 1 commit
  38. 19 Nov, 2016 1 commit
  39. 03 Nov, 2016 1 commit