• Tong Mu's avatar
    Fix mouse region crash when using closures (#37342) · 55fd5f15
    Tong Mu authored
    This PR fixes an issue where MouseRegion crashes when being passed with closures instead of methods.
    
    It changes how a RenderMouseRegion handles its MouseTrackingAnnotation.
    
    Instead of creating a new annotation every time it becomes active and destroys it when deactivated, it now creates an annotation during the constructor and holds onto it until the end of its lifecycle.
    Instead of directly passing the argument callbacks to the annotation, it proxies them using methods.
    55fd5f15
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...
PATENTS 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...