1. 30 Mar, 2023 1 commit
  2. 23 Feb, 2023 1 commit
    • Greg Price's avatar
      Fix buggy formula for critically-damped springs (#120488) · 97938859
      Greg Price authored
      Fixes #109675.
      
      This formula would produce an initial velocity quite different
      from the one specified as an argument.
      
      To update the test, I computed the expected results separately
      by using the physical formula.
      
      Happily, the framework by default never ends up actually exercising
      this code.  Of the four SpringDescription call sites within the
      framework, two are explicitly overdamped; the other two are by
      design critically damped, but due to rounding they end up being
      treated as (very slightly) overdamped too.  Details here:
        https://github.com/flutter/flutter/issues/109675#issuecomment-1423674855
      
      So the only way an app could be affected by this bug is if it called
      a SpringDescription constructor itself, and managed to create a spring
      description where the distinguishing formula in _SpringSolution comes
      out exactly equal to zero.  It's likely nobody has ever shipped such
      an app, because the behavior this produces would be so wildly wrong
      that it'd be hard to miss when exercised.
      Co-authored-by: 's avatarKate Lovett <katelovett@google.com>
      97938859
  3. 25 Jan, 2023 1 commit
  4. 21 Dec, 2022 1 commit
  5. 19 Sep, 2022 1 commit
  6. 08 Oct, 2021 3 commits
  7. 27 Jul, 2021 1 commit
  8. 01 Jul, 2021 1 commit
  9. 29 Jun, 2021 1 commit
    • Greg Spencer's avatar
      Randomize Framework tests, opt out some tests that currently fail. (#85159) · b5f9612c
      Greg Spencer authored
      This turns on order shuffling for all tests that don't fail with it on, marking those tests that do fail with a tag so that they will be run without shuffling on.
      
      To determine which tests fail with it on, I ran all the tests 100 times with different random shuffle seeds, and then also ran it with the date seeds from today until the end of July, and tagged all of the test suites (files) that fail, with a seed that caused them to fail.
      b5f9612c
  10. 20 May, 2021 1 commit
  11. 23 Apr, 2021 1 commit
  12. 16 Mar, 2021 2 commits
  13. 15 Mar, 2021 1 commit
  14. 31 Aug, 2020 1 commit
    • Chris Bracken's avatar
      Prefer moreOrLessEquals over closeTo (#64915) · c0ea00ed
      Chris Bracken authored
      Flutter's `moreOrLessEquals` has a few advantages over `closeTo` from
      the `matcher` package:
      
         * It emits the epsilon value in the test result on failure.
         * It uses a named parameter for epsilon, which improves readability
           at the call site.
         * It has a reasonable default for epsilon in cases where something
           more specific isn't required.
      
      Using it also has the nice property that it aids in its own discovery
      when when people go looking for such functionality in new tests.
      
      This change also includes a couple unrelated whitespace formatting cleanups.
      c0ea00ed
  15. 26 Aug, 2020 1 commit
  16. 16 Jun, 2020 1 commit
  17. 11 Jun, 2020 1 commit
  18. 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
  19. 11 Jun, 2019 1 commit
  20. 12 Sep, 2018 1 commit
  21. 15 Aug, 2018 1 commit
    • Ian Hickson's avatar
      Shim package:test to avoid matcher issues (#20602) · 686d8f8a
      Ian Hickson authored
      * Upgrade everything except matcher.
      * Roll matcher (and test)
      * Adjust tests that depend on flutter:test directly to depend on a shim
      * Require use of package:test shim and remove other references to package:test
      686d8f8a
  22. 12 Mar, 2018 1 commit
  23. 10 Feb, 2018 1 commit
  24. 01 Feb, 2018 1 commit
  25. 14 Nov, 2017 1 commit
    • Jeff McGlynn's avatar
      PageView ballistics overshoot the page on some devices (#12884) · 473d75a6
      Jeff McGlynn authored
      * PageView ballistics overshoot the page on some devices
      
      On some devices, such as Cupertino “Plus”-sized devices, scrolling left on the first page of a PageView will overshoot the first page and land on the second page.
      
      The issue is that applyContentDimensions incorrectly detects a content size change due to a floating point comparison on certain screen sizes (18257.400000000005 vs 18257.4)
      
      To fix this, perform a nearEqual comparison in applyContentDimensions.
      
      * Apply style changes to nearEqual for code review feedback.
      473d75a6
  26. 23 Aug, 2017 1 commit
  27. 03 May, 2017 1 commit
  28. 04 Mar, 2017 1 commit
  29. 17 Feb, 2017 1 commit
  30. 17 Jan, 2017 1 commit
    • Adam Barth's avatar
      Fix several minor bugs and add many tests (#7506) · 2b742289
      Adam Barth authored
      * MultiTapGestureRecognizer previously would assert if there was no
         competition.
       * GestureArenaTeam would always select the first recongizer as the
         winner even if a later recognizer actually accepted the pointer
         sequence.
       * debugPrintStack would fail a type check if maxFrames was non-null.
       * FractionalOffset.lerp would throw a null-pointer exception if its
         second argument was null.
      
      Also, add a number of tests for previously untested lines of code.
      2b742289
  31. 06 Jan, 2017 1 commit
    • Ian Hickson's avatar
      Add a toString to Simulation (#7364) · 79c8e5c7
      Ian Hickson authored
      Also, make hasOneLineDescription more discerning.
      Also, add a test for hasOneLineDescription.
      Also, add a test for GravitySimulation, to test the toString.
      79c8e5c7
  32. 09 Dec, 2016 1 commit
  33. 15 Oct, 2016 1 commit
  34. 27 Apr, 2016 1 commit