1. 16 May, 2023 1 commit
  2. 08 Mar, 2023 1 commit
  3. 03 Feb, 2023 1 commit
  4. 23 Jan, 2023 1 commit
  5. 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
  6. 17 Jun, 2022 1 commit
  7. 25 May, 2022 1 commit
    • Pierre-Louis's avatar
      Use `curly_braces_in_flow_control_structures` for `foundation`, `gestures`,... · 9cc72df7
      Pierre-Louis authored
      Use `curly_braces_in_flow_control_structures` for `foundation`, `gestures`, `painting`, `physics` (#104610)
      
      * Use `curly_braces_in_flow_control_structures` for `foundation`
      
      * Use `curly_braces_in_flow_control_structures` for `gestures`
      
      * Use `curly_braces_in_flow_control_structures` for `painting`
      
      * Use `curly_braces_in_flow_control_structures` for `physics`
      
      * fix comments
      
      * remove trailing space
      
      * fix TODO style
      9cc72df7
  8. 14 Apr, 2022 1 commit
  9. 03 Feb, 2022 1 commit
  10. 07 Dec, 2021 1 commit
  11. 09 Aug, 2021 1 commit
  12. 04 Aug, 2021 1 commit
    • Todd Volkert's avatar
      Add SerialTapGestureRecognizer (#83082) · 6490a4e9
      Todd Volkert authored
      This gesture recognizer can be used to recognize the classic
      "onclick" behavior, where each tap in a series fires an event
      with an incrementing "count" of how many taps have occurred
      in series. This can in turn be used to build widgets that respond
      to both tap and double-tap, or for widgets like the YouTube TV
      player, where each subsequent tap in a series of >2 taps adjusts
      the playhead another 15 seconds.
      
      Fixes https://github.com/flutter/flutter/issues/81657
      6490a4e9
  13. 15 Jul, 2021 1 commit
  14. 14 Jul, 2021 3 commits
  15. 13 Jul, 2021 2 commits
  16. 19 May, 2021 1 commit
  17. 07 May, 2021 1 commit
  18. 12 Jan, 2021 1 commit
  19. 02 Nov, 2020 1 commit
  20. 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
  21. 24 Aug, 2020 1 commit
  22. 06 Aug, 2020 1 commit
  23. 28 Jul, 2020 1 commit
  24. 11 Jun, 2020 1 commit
  25. 07 Jan, 2020 1 commit
  26. 03 Dec, 2019 1 commit
  27. 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
  28. 26 Nov, 2019 1 commit
  29. 11 Nov, 2019 1 commit
  30. 31 May, 2019 1 commit
  31. 20 May, 2019 1 commit
  32. 14 May, 2019 3 commits
  33. 01 May, 2019 1 commit
  34. 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
  35. 29 Apr, 2019 1 commit