Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: on-close event handler not be triggered on flutter >= 3.10 #343

Merged
merged 1 commit into from
Jul 1, 2023

Conversation

Kingtous
Copy link
Contributor

@Kingtous Kingtous commented May 22, 2023

This PR adds a workaround to remove the delete-event handlers in the flutter engine on Linux, which breaks the propagation of on-close event.

Note that it only happens on flutter >= 3.10, and the problem is brought by flutter/engine#40033 (comment).

Future: this pr may break some latest api provided by Flutter, but currently we must fix the setPreventClose to ensure the validity of this important and core function. latest api: flutter/flutter#30735

@Kingtous Kingtous changed the title fix: on-close event handler not riggered on flutter >= 3.10 fix: on-close event handler not be triggered on flutter >= 3.10 May 22, 2023
@lijy91
Copy link
Member

lijy91 commented Jul 1, 2023

LGTM

@lijy91 lijy91 merged commit de6d072 into leanflutter:main Jul 1, 2023
Merrit added a commit to Merrit/nyrna that referenced this pull request Jul 5, 2023
Merrit added a commit to Merrit/nyrna that referenced this pull request Jul 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants