flutter/dev/benchmarks/microbenchmarks/lib/gestures
Kate Lovett 8ba459ce9f
Update VelocityTracker (4) (#139166)
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
2023-11-29 14:59:13 +00:00
..
apps Prepare more of dev for use_super_parameters (#101073) 2022-03-30 14:05:05 -07:00
data License update (#45373) 2019-11-27 15:04:02 -08:00
gesture_detector_bench.dart Correct a few import sortings (#130435) 2023-07-13 15:33:07 +00:00
velocity_tracker_bench.dart Update VelocityTracker (4) (#139166) 2023-11-29 14:59:13 +00:00