You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I see no way of capturing the back button press in the app. Currently this closes the Sky Engine.
It would be great if this can be combined with the request to have framework level support for page transitions (with animations). Back button can then be handled within framework and transition to the previous page.
This should be relatively easy since all you really need is to capture this in java layer and call some dart hook to decide whether the app should handle it or not. See http://developer.android.com/reference/android/app/Activity.html#onBackPressed() The only thing is I am not sure if it can be done in an async way and whether that's a requirement for you.
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.
Activity
eseidelGoogle commentedon May 18, 2015
Agreed. @mpcomplete looked into this briefly, but we don't yet have a way to override this behavior.
mehmetf commentedon May 19, 2015
This should be relatively easy since all you really need is to capture this in java layer and call some dart hook to decide whether the app should handle it or not. See http://developer.android.com/reference/android/app/Activity.html#onBackPressed() The only thing is I am not sure if it can be done in an async way and whether that's a requirement for you.
Hixie commentedon May 19, 2015
The reason it's hard is that we need to figure out what it should mean.
Hixie commentedon May 19, 2015
Anyway, this is covered by https://github.com/domokit/mojo/issues/155 .
b-cancel commentedon Jun 13, 2018
I'm posting this here in case anyone out there finds this and wishes they would find a simple example
https://gist.github.com/b-cancel/0ca372017a25f0c120b14dfca3591aa5
Add is_official_build needed by skia build. (flutter#21)
github-actions commentedon Sep 3, 2021
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.