1. 01 Mar, 2019 1 commit
    • Alexandre Ardhuin's avatar
      Add missing trailing commas (#28673) · 387f8854
      Alexandre Ardhuin authored
      * add trailing commas on list/map/parameters
      
      * add trailing commas on Invocation with nb of arg>1
      
      * add commas for widget containing widgets
      
      * add trailing commas if instantiation contains trailing comma
      
      * revert bad change
      387f8854
  2. 29 Jan, 2019 1 commit
  3. 08 Nov, 2018 1 commit
  4. 05 Nov, 2018 1 commit
    • Greg Spencer's avatar
      Rewrite the analyze-sample-code script to also analyze snippets (#23893) · 202b045b
      Greg Spencer authored
      This rewrites the sample code analysis script to be a little less of a hack (but still not pretty), and to handle snippets as well.
      
      It also changes the semantics of how sample code is handled: the namespace for the sample code is now limited to the file that it appears in, so some additional "Examples can assume:" blocks were added. The upside of this is that there will be far fewer name collisions.
      
      I fixed the output too: no longer will you get 4000 lines of numbered output with the error at the top and have to grep for the actual problem. It gives the filename and line number of the original location of the code (in the comment in the tree), and prints out the source code on the line that caused the problem along with the error.
      
      For snippets, it prints out the location of the start of the snippet and the source code line that causes the problem. It can't print out the original line, because snippets get formatted when they are written, so the line might not be in the same place.
      202b045b
  5. 17 Oct, 2018 1 commit
  6. 16 Oct, 2018 1 commit
  7. 03 Oct, 2018 1 commit
  8. 14 Sep, 2018 1 commit
  9. 13 Sep, 2018 1 commit
  10. 12 Sep, 2018 1 commit
  11. 07 Sep, 2018 2 commits
  12. 02 Aug, 2018 1 commit
  13. 30 Jul, 2018 1 commit
  14. 27 Jul, 2018 1 commit
  15. 23 Jul, 2018 1 commit
  16. 20 Jul, 2018 1 commit
  17. 16 Jul, 2018 2 commits
  18. 13 Jun, 2018 1 commit
    • Chris Bracken's avatar
      Revert elimination of Dart 1 (#18460) · 2ae48845
      Chris Bracken authored
      fuchsia_tester.dart still assumes Dart 1. Previously, it ran tests directly
      from source, flutter_platform.dart automatically runs a kernel compile when
      operating in Dart 2 mode, but this assumes a functional Dart SDK is available
      in the artifacts directly, and fuchsia_tester.dart mocks out the artifacts
      directory with an empty temp dir.
      
      Remaining work is:
      1. Get the frontend server building as a dependency on Fuchsia.
      2. Patch fuchsia_tester.dart to use a valid Dart SDK and frontend server.
      
      This also reverts migration to Dart 2 typedef syntax.
      
      This reverts commit 6c56bb24. (#18362)
      This reverts commit 3daebd05. (#18316)
      2ae48845
  19. 11 Jun, 2018 1 commit
    • Greg Spencer's avatar
      Update typedef syntax to use Function notation and turn on lint for old notation. (#18362) · 6c56bb24
      Greg Spencer authored
      Now that Dart 1 is turned off, reapplying my change to turn on the prefer_generic_function_type_aliases analysis option, and fix all the typedefs to Dart 2 preferred syntax.
      
      Also eliminated the unused analysis_options_repo.yaml file and turned on public_member_api_docs in analysys_options.yaml.
      
      No logic changes, just changing the typedef syntax for all typedefs, and updating analysis options.
      6c56bb24
  20. 05 Jun, 2018 1 commit
  21. 31 May, 2018 1 commit
  22. 30 May, 2018 2 commits
  23. 18 May, 2018 1 commit
  24. 09 May, 2018 1 commit
  25. 20 Apr, 2018 1 commit
  26. 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
  27. 30 Jan, 2018 1 commit
  28. 24 Jan, 2018 1 commit
  29. 14 Dec, 2017 1 commit
  30. 08 Dec, 2017 1 commit
  31. 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
  32. 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
  33. 12 Sep, 2017 1 commit
  34. 11 Sep, 2017 1 commit
  35. 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
  36. 12 Jun, 2017 1 commit
  37. 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