1. 03 May, 2019 1 commit
  2. 01 May, 2019 1 commit
  3. 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
  4. 10 Apr, 2019 2 commits
  5. 05 Apr, 2019 1 commit
  6. 04 Apr, 2019 2 commits
    • Tong Mu's avatar
      Touching the screen adds `0x01` to buttons (#30457) · 13101c1a
      Tong Mu authored
      * Add constants `kPrimaryButton`, `kTouchContact` and `kStylusContact`
      * PointerDownEvent and PointerMoveEvent will always set the 0x01 bit on buttons
      13101c1a
    • Tong Mu's avatar
      Fix edge cases of PointerEventConverter (#29998) · 423cf223
      Tong Mu authored
      * Fix: ui.PointerChange.remove might contain position change, but we used to expand it into a Cancel and Remove, neither of which allows position change. A Hover event is added, and a test is updated accordingly.
      * Fixed the issue where a PointerMoveEvent and a PointerCancelEvent do not receive the correct pressure.
      * Refactor the calculation of delta into deltaTo.
      423cf223
  7. 11 Mar, 2019 1 commit
    • stuartmorgan's avatar
      Add support for scrollwheels (#22762) · 5922a40e
      stuartmorgan authored
      Adds support for discrete scroll events, such as those sent by a scroll wheel.
      
      Includes the plumbing to convert, dispatch, and handle these events, as well as
      Scrollable support for consuming them.
      5922a40e
  8. 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
  9. 29 Jan, 2019 1 commit
    • Greg Spencer's avatar
      Implement hover support for mouse pointers. (#24830) · 1811d574
      Greg Spencer authored
      This implements support for hovering mouse pointers, so that mice connected to Android devices, and ChromeOS devices running Android apps will work properly.
      
      It teaches flutter_test about hover events, which required changing how they are created and used.
      
      Also modifies AnnotatedRegion to allow a region that can be located someplace other than just the origin.
      
      Along with tests for all of the above.
      
      Fixes #5504
      1811d574
  10. 05 Nov, 2018 1 commit
  11. 26 Oct, 2018 1 commit
  12. 12 Sep, 2018 1 commit
  13. 25 Jul, 2018 1 commit
    • amirh's avatar
      Fix touch event conversion bugs. (#19780) · 1269863d
      amirh authored
      These are bugs uncovered by the integration test for embedded Android
      views:
      
        * Some PointerEvents were constructed with radiusMinor set to
        radiusMajor.
        * Some PointerEvents were missing radiusMajor/radiusMinor.
        * The pressure parameter was not passed to PointerUpEvent.
        * radiusMin, radiusMax, radiusMinor, and radiusMajor were not
        converted from physical pixels to logical.
      
      Sending the fixes without a test as the bugs are covered by the integration
      test that is going to land soon.
      1269863d
  14. 04 Apr, 2018 1 commit
  15. 09 Nov, 2017 1 commit
  16. 10 Aug, 2017 1 commit
  17. 16 May, 2017 1 commit
  18. 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
  19. 29 Mar, 2017 1 commit
  20. 04 Mar, 2017 1 commit
  21. 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
  22. 10 Jan, 2017 1 commit
  23. 16 Nov, 2016 1 commit
  24. 30 Sep, 2016 1 commit
  25. 21 Sep, 2016 1 commit
    • James Robinson's avatar
      Isolate imports of generated Dart code from generated path (#5960) · a95c9fdb
      James Robinson authored
      This rewrites imports of various mojom.dart files from the Flutter
      engine repo to instead import normal-looking dart files from the
      (new) flutter_services package. This package handles exporting the
      correct symbols from generated code wherever that may live.
      
      Includes an engine roll to 3551e7a48e2e336777b15c7637af92fd7605b6c5
      which contains the new flutter_services package.
      a95c9fdb
  26. 15 Sep, 2016 1 commit
  27. 29 Mar, 2016 1 commit
  28. 16 Feb, 2016 1 commit
    • Adam Barth's avatar
      Enforce that we get a final move to the pointer up location · ddd58c5e
      Adam Barth authored
      Previously we asserted that we got a pointer move to the location where the
      pointer up occured, but not all sources of pointer packets respect that
      invariant. Specifically, on the iOS simulator, of you drag outside the window,
      you'll get a stream of pointers that violates that invariant.
      
      This patch teaches the converter to insert a PointerMoveEvent to move the
      pointer to the location where the up occurs, repairing the invariant.
      
      Fixes #1912
      ddd58c5e
  29. 05 Feb, 2016 1 commit
  30. 16 Jan, 2016 1 commit
  31. 14 Dec, 2015 1 commit
  32. 10 Dec, 2015 1 commit
  33. 09 Dec, 2015 1 commit
    • Eric Seidel's avatar
      Add a test to stocks for changing the locale · 09894ec5
      Eric Seidel authored
      I had to add a setLocale method to WidgetTester and
      split the code in FlutterBinding which handled locale
      changes to allow me to dispatch a locale change w/o actually
      changing what the c++ code reports as the locale.
      
      Also added the test to Travis.
      
      @abarth @jason-simmons
      09894ec5
  34. 08 Dec, 2015 2 commits
    • Hixie's avatar
      Clean up pointer handling. · 7514ce12
      Hixie authored
      Previously we tried to work around some possible badness from the engine
      side, but now we are more assertive about the engine needing to do the
      right thing.
      7514ce12
    • Jason Simmons's avatar
      Add a LocaleQuery widget that can be used to fetch locale-specific data · 9693cd55
      Jason Simmons authored
      Users of MaterialApp can provide an onLocaleChanged handler that will be
      called to asynchronously fetch locale-specific data.  MaterialApp will
      then instantiate a LocaleQuery that supplies the locale data to its
      descendants.
      9693cd55
  35. 07 Dec, 2015 2 commits
  36. 05 Dec, 2015 1 commit
    • Ian Hickson's avatar
      PointerInput refactor · f1625556
      Ian Hickson authored
      Instead of PointerInputEvent having a "type" field, we now have a
      different class for each pointer type.
      
      This has ripple effects throughout the system.
      
      I also did code cleanup in affected files while I was there.
      f1625556