1. 19 Sep, 2020 1 commit
  2. 17 Sep, 2020 2 commits
    • Jonah Williams's avatar
      Deprecate VelocityTracker default constructor and added... · b1d17c91
      Jonah Williams authored
      Deprecate VelocityTracker default constructor and added VelocityTracker.withKind constructor (#66043)
      
      We've gotten feedback that the VelocityTracker change was disruptive, though it did not break any of the flutter framework or customer tests. In order to make the change non-breaking, PointerDeviceKind parameter can be made optional.
      
      Nevertheless, this parameter should be provided so that the existing touch handlers can use more accurate gestures on mouse/stylus inputs, so we can encourage this by deprecating the default constructor and pointing users towards the VelocityTracker.withKind constructor that takes a non-optional parameter
      b1d17c91
    • Ben Konyi's avatar
      Roll packages to fix #66038 (#66052) · fb08acf1
      Ben Konyi authored
      PR #65873 enabled DDS for non-web Flutter applications. This change
      surfaced a bug where DDS would not send ServiceRegistered events to VM
      service clients when they subscribed to the Service stream. This would
      cause tools and tests that rely on these events (e.g., hot reload in
      VSCode) to fail.
      
      Fixes #66038.
      fb08acf1
  3. 16 Sep, 2020 5 commits
  4. 15 Sep, 2020 1 commit
  5. 14 Sep, 2020 1 commit
  6. 12 Sep, 2020 2 commits
  7. 11 Sep, 2020 1 commit
  8. 10 Sep, 2020 1 commit
  9. 08 Sep, 2020 1 commit
    • Jonah Williams's avatar
      [framework] make hit slop based on device pointer kind for drag/pan/scale gestures (#64267) · 29898812
      Jonah Williams authored
      Currently the framework uses fairly large "hit slop" values to disambiguate taps from drags/pans. This makes sense on touch devices where the interaction is not very precise, on mice however it can feel as if the UI is lagging. This is immediately noticeable on our infra dashboard, where it takes almost half of a grid square of drag before the actual drag kicks in.
      
      One potential solution is to always use smaller constants depending on whether the interaction is mouse or touch based. The only reasonable choice is to use the pointer device kind and not target platform - same platform can have different input sources. This requires exposing the pointer device kind in a few new places in several of the gesture detectors, and using the enum to compute the correct hit slop from an expanded set of constants.
      
      This almost works, however there are a few places (notably ListViews) which uses the touch hit slop as a default value in scroll physics. It does not seem like it will be easy to disambiguate a user provided scroll physics constant from the default and/or adjust it somehow - this might require significant changes to scroll physics which I have left out of this PR.
      
      This PR does not adjust:
      
      kTouchSlop used in scroll_physics.dart's minFlingDistance
      kTouchSlop used in PrimaryPointerGestureRecognizer/LongPressGestureRecognizer
      29898812
  10. 05 Sep, 2020 1 commit
  11. 03 Sep, 2020 1 commit
    • Yuqian Li's avatar
      Increase simple animation delay and duration (#64002) · d7d1461f
      Yuqian Li authored
      Previously, the CPU/GPU measurement using gauge happened after the
      driver test is done. Now, the measurement happens within the driver
      test. So we need to properly increase the delay and duration to get a
      comparable reading as the old gauge measurements.
      d7d1461f
  12. 02 Sep, 2020 1 commit
  13. 01 Sep, 2020 3 commits
  14. 31 Aug, 2020 2 commits
    • Dan Field's avatar
    • Shi-Hao Hong's avatar
      [gen_l10n] Synthetic package generation by default (#62395) · fd22fc3e
      Shi-Hao Hong authored
      * synthetic packages by default in gen_l10n tool
      
      * Refactor default path for synthetic package
      
      * Remove unused import
      
      * Code cleanup
      
      * Further improvements to help text
      
      * Refactor synthetic package path
      
      * Remove newlines
      
      * Test cleanup
      
      * clean up logic in inputs and outputs list function
      
      * Update l10n.yaml usage
      
      * only add option if value is non-null
      
      * Update stocks app as proof of concept for synthetic package usage
      
      * Address nits
      
      * print pubspec contents
      
      * add print statements
      
      * Do not allow null value for useSyntheticPackage
      
      * +
      
      * +
      
      * +
      
      * +
      
      * Cleanup
      
      * Add test
      
      * Fix text
      
      * Dont parse pubspec directly
      
      * Test using context
      
      * WIP: generate synthetic packages on pub get -- needs tests
      
      * Allow null value
      
      * Update null handling
      
      * Refactor to properly handle null case
      
      * Fix yamlMap condition
      
      * Fix yaml node for real
      
      * WIP: struggling to write tests
      
      * WIP - take absolute path as an option
      
      * Add tests
      
      * Use environment project directory for synthetic package generation pathway
      
      * Fix typo
      
      * Improve help text
      
      * Update defaults
      
      * Remove unauthorized path import
      
      * Fix pathing issues at synthetic package generation
      
      * Fix typo in test
      
      * Use path.join so projectDir matches up based on OS
      
      * Fix Windows pathing in test
      
      * Remove unnecessary replaceApp code for projectDir.path
      
      * Use globals.fs.currentDirectory.path in resident_runner_test.dart
      
      * Fix merge conflict
      
      * Add test to ensure that synthetic package is generated on pub get
      
      * Fix resident_runner_test.dart tests
      
      * Fix tests
      
      * Use package:file instead of dart:io
      
      * WIP - exploration
      
      * Remove synthetic package use from stocks example
      
      * Update integration test to not use synthetic packages
      
      * Remove trailing whitespace
      
      * flutter pub get runs synth package generation
      
      * Remove more print statements
      
      * Add license header
      
      * WIP - minimally working pub.get
      
      * Use own MockBuildSystem
      
      * Modify test and implementation to be a little cleaner
      
      * Fix flutter pub get invocation
      
      * Use synthetic packages in stocks app
      
      * Revert "Use synthetic packages in stocks app"
      
      This reverts commit 45bf24903c3d4a2a5fd5481d7d6bc36c4a348703.
      
      * Add environment and buildSystem params to flutter test
      
      * Address code review feedback
      
      * +
      
      * Isolate codegen into its own API
      
      * Fix imports
      
      * Slight refactor
      
      * Add one more test for no l10n.yaml file
      
      * Remove unneeded mock class and import in pub_get_test.dart
      
      * More code review feedback
      
      * Remove unnecessary imports
      
      * Remove `return await`s that I missed
      
      * use arrow functions instead
      fd22fc3e
  15. 30 Aug, 2020 1 commit
  16. 29 Aug, 2020 1 commit
  17. 20 Aug, 2020 2 commits
  18. 19 Aug, 2020 5 commits
  19. 17 Aug, 2020 1 commit
  20. 15 Aug, 2020 1 commit
  21. 13 Aug, 2020 1 commit
  22. 12 Aug, 2020 3 commits
  23. 11 Aug, 2020 2 commits