1. 29 Nov, 2023 1 commit
    • Kate Lovett's avatar
      Update VelocityTracker (4) (#139166) · 8ba459ce
      Kate Lovett authored
      This updates the implementation to use the stopwatch from the Clock object and pipes it through to the TestWidgetsFlutterBinding so it will be kept in sync with FakeAsync.
      
      Relands https://github.com/flutter/flutter/pull/138843 attempted to reland https://github.com/flutter/flutter/pull/137381 which attempted to reland #132291
      Fixes https://github.com/flutter/flutter/issues/97761
      
      1. The original change was reverted due to flakiness it introduced in tests that use fling gestures.
        * Using a mocked clock through the test binding fixes this now
      2. It was reverted a second time because a change at tip of tree broke it, exposing memory leaks, but it was not rebased before landing. 
        * These leaks are now fixed
      3. It was reverted a third time, because we were so excellently quick to revert those other times, that we did not notice the broken benchmark that only runs in postsubmit.
        * The benchmark is now fixed
      8ba459ce
  2. 13 Jan, 2023 1 commit
    • Bernardo Ferrari's avatar
      Add `allowedButtonsFilter` to prevent Draggable from appearing with secondary click. (#111852) · 0752af84
      Bernardo Ferrari authored
      * DragTarget part 1.
      
      [WIP] Change GestureRecognizer. Sorry.
      
      [WIP] Move from GestureRecognizer to MultiDragGestureRecognizer.
      
      Make it a `Set<int>?`
      
      Get bitwise operations working.
      
      Fix test. Rename to allowedInputPointers.
      
      Convert into a builder.
      
      Improve code with default funciton.
      
      Refactor everything again.
      
      Rename to buttonEventFilter.
      
      Use static function.
      
      Fix analyzer.
      
      Fix private reference.
      
      Use // in private method.
      
      * Fix Renzo request.
      
      * Add `allowedButtonsFilter` everywhere.
      
      * Refactor monoDrag for multi pointer support.
      
      * Fix tests?
      
      * Change default to always true.
      
      * Fix PR comments.
      
      * Completely refactor long press.
      
      * Add forgotten class.
      
      * Revert "Completely refactor long press."
      
      This reverts commit 5038e8603e250e8c928b0f1754fb794b7b75738b.
      
      * Add default value to LongPress
      
      * Refactor doubleTap.
      
      * Relax double tap.
      
      * Write comment in LongPress.
      
      * Use template.
      0752af84
  3. 03 Feb, 2022 1 commit
  4. 15 Jul, 2021 1 commit
  5. 14 Jul, 2021 3 commits
  6. 13 Jul, 2021 2 commits
  7. 16 Mar, 2021 2 commits
  8. 15 Mar, 2021 1 commit
  9. 22 Jan, 2021 1 commit
  10. 05 Oct, 2020 1 commit
  11. 24 Aug, 2020 1 commit
  12. 04 Aug, 2020 1 commit
  13. 11 Jun, 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. 25 May, 2019 1 commit
  16. 20 May, 2019 1 commit
  17. 01 May, 2019 1 commit
  18. 30 Apr, 2019 1 commit
    • Tong Mu's avatar
      Redo: Add buttons to gestures (#31819) · fea2c7d6
      Tong Mu authored
      * Revert "Revert "Add buttons to gestures (#30339)" (#31801)"
      
      This reverts commit 8fd7fa49.
      
      * Synthesise kPrimaryButton for unknown devices
      
      * Change TestPointer to a better API
      fea2c7d6
  19. 29 Apr, 2019 2 commits
  20. 06 Mar, 2019 1 commit
    • Tong Mu's avatar
      Add minimum time gap requirement to double tap (#28749) · 2e1a8c74
      Tong Mu authored
      * First impl with StopwatchWithZone
      
      * Clean up params and name
      
      * Remove outdated TODO
      
      * Fix style
      
      * Fix a missing param. Add @require
      
      * Fix import meta
      
      * Fix code style
      
      * Add missing require. Fix comment style.
      
      * Fix code style
      
      * Fix code style
      2e1a8c74
  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. 12 Sep, 2018 1 commit
  23. 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
  24. 02 Aug, 2018 1 commit
  25. 27 Jul, 2018 1 commit
  26. 23 Jul, 2018 1 commit
  27. 16 Jul, 2018 2 commits
  28. 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
  29. 04 Mar, 2017 1 commit
  30. 09 Dec, 2016 1 commit
  31. 26 Apr, 2016 1 commit
    • Adam Barth's avatar
      Delay win-by-default in gesture arena (#3552) · 51b1550d
      Adam Barth authored
      Wait until the end of the microtask to tell gesture recognizers that
      they've won in the gesture arena. This lets recognizers dispose reject
      themselves at arbitrary times without triggering gestures in awkward
      call stacks.
      
      Fixes #3183
      51b1550d
  32. 22 Apr, 2016 1 commit
  33. 14 Mar, 2016 1 commit
  34. 12 Mar, 2016 1 commit