• Kristin Ho's avatar
    Prevent PointerEnter[or Exit]Event from erasing event.down value (#40637) (#41332) · 034358e3
    Kristin Ho authored
    * MouseRegion documentation claimed that onEnter and onExit
      would track entry and exit regardless of whether the pointer was
      down or up
    * It did such, but when grabbing the value of `event.down` from
      the passed event, the value was always `false`
    * PointerEnterEvent and PointerExitEvent were overriding the value
      passed from PointerEvent in constructors, even if the value was true
      e.g. in invocations of .fromMouseEvent((PointerMoveEvent...))
    * This change now passes the value along to PointerEnter/ExitEvents
      while providing it a default of false, and updates documentation
    
    Fixes #40637
    034358e3
Name
Last commit
Last update
.github Loading commit data...
bin Loading commit data...
dev Loading commit data...
examples Loading commit data...
packages Loading commit data...
.cirrus.yml Loading commit data...
.codecov.yml Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
CODEOWNERS Loading commit data...
CODE_OF_CONDUCT.md Loading commit data...
CONTRIBUTING.md Loading commit data...
LICENSE Loading commit data...
PATENT_GRANT Loading commit data...
README.md Loading commit data...
analysis_options.yaml Loading commit data...
dartdoc_options.yaml Loading commit data...
flutter_console.bat Loading commit data...