1. 08 Aug, 2020 1 commit
  2. 04 Aug, 2020 1 commit
  3. 29 Jul, 2020 1 commit
  4. 28 Jul, 2020 2 commits
  5. 17 Jul, 2020 1 commit
  6. 18 Jun, 2020 2 commits
    • Justin McCandless's avatar
    • Jonah Williams's avatar
      [flutter_tools] add toggle `b` and service extension to change platform brightness (#59571) · e1f4cfb4
      Jonah Williams authored
      A frequent request from the last Flutter developer survey was for an easier method of testing light/dark mode changes. Currently, a user needs to manually change the theme settings or adjust phone settings to see the difference. Instead we should add a toggle from the CLI, and eventually devtools/Intellij/Vscode that allows developers to override the current setting.
      
      Fixes #59495
      
      Adds flutter.ext.brightnessOverride service protocol which either queries the current platform brightness, or overrides it to a new value. This accepts either Brightness.light or Brightness.dark as a value.
      
      Adds a CLI toggle b which allows the setting to be toggled manually.
      
      Requires an update to the MediaQuery, to conditionally use a debug override when not in release mode
      e1f4cfb4
  7. 16 Jun, 2020 1 commit
  8. 15 Jun, 2020 1 commit
  9. 11 Jun, 2020 1 commit
  10. 29 Jan, 2020 1 commit
  11. 27 Jan, 2020 1 commit
  12. 17 Jan, 2020 1 commit
  13. 16 Jan, 2020 1 commit
  14. 27 Nov, 2019 1 commit
    • Ian Hickson's avatar
      License update (#45373) · 449f4a66
      Ian Hickson authored
      * Update project.pbxproj files to say Flutter rather than Chromium
      
      Also, the templates now have an empty organization so that we don't cause people to give their apps a Flutter copyright.
      
      * Update the copyright notice checker to require a standard notice on all files
      
      * Update copyrights on Dart files. (This was a mechanical commit.)
      
      * Fix weird license headers on Dart files that deviate from our conventions; relicense Shrine.
      
      Some were already marked "The Flutter Authors", not clear why. Their
      dates have been normalized. Some were missing the blank line after the
      license. Some were randomly different in trivial ways for no apparent
      reason (e.g. missing the trailing period).
      
      * Clean up the copyrights in non-Dart files. (Manual edits.)
      
      Also, make sure templates don't have copyrights.
      
      * Fix some more ORGANIZATIONNAMEs
      449f4a66
  15. 31 Oct, 2019 1 commit
  16. 09 Oct, 2019 1 commit
  17. 30 Sep, 2019 1 commit
  18. 09 Jul, 2019 1 commit
  19. 04 Apr, 2019 1 commit
  20. 06 Mar, 2019 1 commit
  21. 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
  22. 07 Feb, 2019 1 commit
  23. 05 Oct, 2018 1 commit
  24. 25 Sep, 2018 3 commits
  25. 12 Sep, 2018 1 commit
  26. 28 Aug, 2018 1 commit
  27. 20 Jun, 2018 1 commit
  28. 19 Jun, 2018 1 commit
  29. 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
  30. 08 Feb, 2018 1 commit
    • Vyacheslav Egorov's avatar
      Strong mode fixes in tests (#14520) · 0556e14f
      Vyacheslav Egorov authored
      * Use explicit types for onClick handler in diagnostics_test.
      
      This test formats it to string and expects exact match.
      
      Before this change onClick had type () => dynamic in Dart 1 and () => Null in
      Dart 2.
      
      * Fix strong mode issues in packages/flutter/test/material/dropdown_test.dart
      
      Pass explicit type argument to renderObjectList(...) in expressions like
      
           List<RenderBox> l = tester.renderObjectList(...).toList();
      
      Dart 2 mode inference is not strong enough to infer RenderBox as a type argument
      fto renderObjectList and passes RenderObject instead, which later leads to
      runtime check failures (because List<RenderObject> is not List<RenderBox>).
      
      * Fix strong mode issues in packages/flutter/test/material/theme_test.dart.
      
      Pass type argument explicity to widgetList. Dart 2 type inference can't infer
      it by itself.
      
      * Fix strong mode issue packages/flutter/test/widgets/unique_widget_test.dart
      
      Pass correct type argument to GlobalKey.
      
      * Fix type annotation in packages/flutter/test/material/app_test.dart.
      
      pushNamed returns Future<Object> not Future<String>.
      0556e14f
  31. 15 Dec, 2017 1 commit
  32. 02 Oct, 2017 1 commit
    • gspencergoog's avatar
      Add framework support for system text scale factor. (#12180) · 18f0d3ae
      gspencergoog authored
      * Add framework-side support for system text scale factor.
      
      * Rolling engine to e3404b81a53ba3180c7623a6f2190ebb28518f30
        Additional changes rolled in with engine change:
          libtxt: implementation of GetRectsForRange that processes a line at a time - e3404b8
          Provide an entropy source to the Dart engine (#4161) - e1aa867
          libtxt: search for fallback fonts that can match emoji and CJK characters - 8061df1
          Roll skia to e4679fa06a. (#4157) - 267e7a8
          Update buildroot to 53fea9aebbcc39c6522731471a1a45960ee0685e (#4160) - 02ea7ae
          Revert engine Dart roll. (#4158) - 14aab33
          Add support for system text scale factor. (#4124) - b2a7f4b
          Include _http into sky_engine libraries for analyzer (#4154) - b930f10
          libtxt: Remove postprocess_line and improve tracking of X offsets - 86f95f0
          libtxt: remove redundant line_widths (#4152) - 14bf515
          Roll dart to ade37f931e90b0fdb8fe16d6bf6f089545da55b6 (#4151) - 6f1264f
      18f0d3ae
  33. 21 Jul, 2017 1 commit
    • gspencergoog's avatar
      Fix Navigator.pop for named routes. (#11289) · e4860ef0
      gspencergoog authored
      * Prefix and Suffix support for TextFields
      
      * Adding Tests
      
      * Removing spurious newline.
      
      * Fixing a small problem with the test
      
      * Code review changes
      
      * Code Review Changes
      
      * Review Changes
      
      * Export the new StrokeJoin enum
      
      * Added example for line styles, and enabled line join styles.
      
      * Reverting inadvertent change to main.dart.
      
      * Updated due to code review of engine code
      
      * Removed example.
      
      * Added arguments to named routes, with test.
      
      * Fixing some formatting
      
      * Fixing Navigator.pop for named routes.
      
      * Fixing comment.
      
      * Simplifying test.
      
      * Fixing new -> const for Text object.
      
      * Tiny text change (also to kick a new Travis build)
      
      * Added a more realistic test case.
      
      * Reverting unintentional iml changes.
      
      * Fixing trailing newline
      
      * Removing some changes that snuck in.
      e4860ef0
  34. 23 Jun, 2017 1 commit
    • Ian Hickson's avatar
      Deep linking: automatically push the route hiearchy on load. (#10894) · 9adb4a78
      Ian Hickson authored
      The main purpose of this PR is to make it so that when you set the
      initial route and it's a hierarchical route (e.g. `/a/b/c`), it
      implies multiple pushes, one for each step of the route (so in that
      case, `/`, `/a`, `/a/b`, and `/a/b/c`, in that order). If any of those
      routes don't exist, it falls back to '/'.
      
      As part of doing that, I:
      
       * Changed the default for MaterialApp.initialRoute to honor the
         actual initial route.
      
       * Added a MaterialApp.onUnknownRoute for handling bad routes.
      
       * Added a feature to flutter_driver that allows the host test script
         and the device test app to communicate.
      
       * Added a test to make sure `flutter drive --route` works.
         (Hopefully that will also prove `flutter run --route` works, though
         this isn't testing the `flutter` tool's side of that. My main
         concern is over whether the engine side works.)
      
       * Fixed `flutter drive` to output the right target file name.
      
       * Changed how the stocks app represents its data, so that we can
         show a page for a stock before we know if it exists.
      
       * Made it possible to show a stock page that doesn't exist. It shows
         a progress indicator if we're loading the data, or else shows a
         message saying it doesn't exist.
      
       * Changed the pathing structure of routes in stocks to work more
         sanely.
      
       * Made search in the stocks app actually work (before it only worked
         if we happened to accidentally trigger a rebuild). Added a test.
      
       * Replaced some custom code in the stocks app with a BackButton.
      
       * Added a "color" feature to BackButton to support the stocks use case.
      
       * Spaced out the ErrorWidget text a bit more.
      
       * Added `RouteSettings.copyWith`, which I ended up not using.
      
       * Improved the error messages around routing.
      
      While I was in some files I made a few formatting fixes, fixed some
      code health issues, and also removed `flaky: true` from some devicelab
      tests that have been stable for a while. Also added some documentation
      here and there.
      9adb4a78
  35. 08 Jun, 2017 1 commit
    • perlatus's avatar
      Check for initialRoute before Navigator.defaultRouteName (#10216) · 0cef0aaf
      perlatus authored
      * Check for initialRoute before Navigator.defaultRouteName
      
      * Default initialRoute to Navigator.defaultRouteName
      
      * Take suggestions from code review
      
      * Add test for old and new routes behavior
      
      * Revert "Add test for old and new routes behavior"
      
      This reverts commit 282fb64b165ed532583e9a5d2e4debe29469fba4.
      
      * Retry: without dartfmt, with dartanalyzer
      
      * Rename tests, check the routes are taken
      
      * Fix flutter analyze --flutter-repo warnings
      
      * Add test for initial vs default route
      
      * Update test and fix analyzer warnings
      
      * Add test for initial route only being used initially
      0cef0aaf
  36. 21 Apr, 2017 1 commit