1. 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
  2. 31 Oct, 2019 1 commit
  3. 09 Oct, 2019 1 commit
  4. 30 Sep, 2019 1 commit
  5. 09 Jul, 2019 1 commit
  6. 04 Apr, 2019 1 commit
  7. 06 Mar, 2019 1 commit
  8. 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
  9. 07 Feb, 2019 1 commit
  10. 05 Oct, 2018 1 commit
  11. 25 Sep, 2018 3 commits
  12. 12 Sep, 2018 1 commit
  13. 28 Aug, 2018 1 commit
  14. 20 Jun, 2018 1 commit
  15. 19 Jun, 2018 1 commit
  16. 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
  17. 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
  18. 15 Dec, 2017 1 commit
  19. 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
  20. 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
  21. 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
  22. 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
  23. 21 Apr, 2017 1 commit
  24. 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
  25. 07 Apr, 2017 1 commit
  26. 04 Apr, 2017 1 commit
  27. 02 Apr, 2017 1 commit
    • Adam Barth's avatar
      Rationalize text input widgets (#9119) · ae899486
      Adam Barth authored
      After this patch, there are three major text input widgets:
      
       * EditableText. This widget is a low-level editing control that
         interacts with the IME and displays a blinking cursor.
      
       * TextField. This widget is a Material Design text field, with all the
         bells and whistles. It is highly configurable and can be reduced down
         to a fairly simple control by setting its `decoration` property to
         null.
      
       * TextFormField. This widget is a FormField that wraps a TextField.
      
      This patch also replaces the InputValue data model for these widgets
      with a Listenable TextEditingController, which is much more flexible.
      
      Fixes #7031
      ae899486
  28. 31 Mar, 2017 1 commit
    • Adam Barth's avatar
      Improve focus management (#9074) · 89aaaa9c
      Adam Barth authored
      We now have an explicit focus tree that we manage. Instead of using
      GlobalKeys to manage focus, we use FocusNode and FocusScopeNode objects.
      The FocusNode is Listenable and notifies when its focus state changes.
      
      Focus notifications trigger by tree mutations are now delayed by one
      frame, which is necessary to handle certain complex tree mutations. In
      the common case of focus changes being triggered by user input, the
      focus notificiation still arives in the same frame.
      89aaaa9c
  29. 04 Mar, 2017 1 commit
  30. 21 Feb, 2017 1 commit
  31. 27 Jul, 2016 1 commit
    • Adam Barth's avatar
      Don't rebuild routes on the second animation frame (#5097) · 8219ab61
      Adam Barth authored
      Previously we would rebuild every route on the second animation frame to
      rejigger the offstage bit and the animations. Now we build the page once and
      update the offstage bit in place and update the animations using
      ProxyAnimations.
      8219ab61
  32. 08 Jul, 2016 1 commit
  33. 21 Jun, 2016 1 commit
    • Adam Barth's avatar
      Nesting MaterialApps should not assert (#4636) · e071f0ba
      Adam Barth authored
      Turns out we weren't managing focus correct between navigator routes because we
      were missing a Focus widget above the routes. However, adding this widget
      caused us to explode at startup because the initial route was trying to move
      focus during the build phase.
      
      This patch teaches Focus to have an initiallyFocusedScope, which can be use to
      initialize the child focus scope.
      
      Fixes #4065
      e071f0ba