• Gabriel Terwesten's avatar
    Don't call `PlatformViewCreatedCallback`s after `AndroidViewController` is disposed (#116854) · ec289f1e
    Gabriel Terwesten authored
    * Don't call `PlatformViewCreatedCallback`s after `AndroidViewController` is disposed
    
    Before this change it was possible that, if a `AndroidViewController` was disposed before we got the notification that the platform view was created, `PlatformViewCreatedCallback`s where called even after calling `AndroidViewController.dispose`.
    
    Also makes `_PlatformViewLinkState._onPlatformViewCreated` more carful to only call `setState` when mounted.
    
    Closes #84628
    Closes #96384
    
    * Allow all widgets to remove listeners from controller
    
    * Remove assert
    
    * Add expectations to test
    ec289f1e
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...
.ci.yaml Loading commit data...
.cirrus.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...
TESTOWNERS Loading commit data...
analysis_options.yaml Loading commit data...
dartdoc_options.yaml Loading commit data...
flutter_console.bat Loading commit data...