packages
packages copied to clipboard
(WIP) Predictive back OpenContainer transition
Flutter now partially supports predictive back on Android, meaning that a back gesture is able to "peek" behind the current route or the app itself to see where the back gesture will go. This should work for open container transitions too, where a back gesture starts to peek, and releasing transitions the route into its "closed" anchor in the previous route. This PR attempts to add support to this to the existing open container transition in this package.
Part of https://github.com/flutter/flutter/issues/131961
Depends on: https://github.com/flutter/flutter/pull/141373 https://github.com/flutter/engine/pull/49093
Hello, I don't know if it's appropriate to leave a non-work-related comment here but I just wanna say that I'm very excited and looking forward to you guys work on integrating Predictive Back into flutter, especially this WIP. I just started flutter for some weeks and got hooked with flutter animation and recently, predictive gesture animation. Then upon finding out about the fact that it will be put into Open Container I was so amazed and impressed. That's a lotta work😆
May I ask you this question: Can you estimate when the stable channel will get this feature? Or can I at least try it somehow on some flutter beta channel? Not sure if I can have multiple version of flutter on my windows because I need to keep the stable version (as of the project I'm doing).
Anyways have a great day, thanks for reading my comment! I got to go, still got a bunch of flutter to learn more!!!
@bebaoboy Thanks so much for the encouragement! Credit to @maRci002 for taking the initiative on the built-in route transitions.
Those built-in transitions (https://github.com/flutter/flutter/pull/141373 and https://github.com/flutter/engine/pull/49093) have already been cut into the upcoming stable release, but for these open container transitions I'm not sure exactly how the release process works. If you are able to install the latest version of animations, even if you're using Flutter's stable channel, I think you'll be able to use these transitions once this PR is merged. There should not be any further framework changes needed for this to work.
I'm hoping to get back to finishing this PR soon.
Hello, that's amazing to here! Thank you for your contributing to Flutter and making it better everyday. And by the way, do you happen to know when the next release of stable channel will be? I will need to wait until then to be able to use Predictive Back Gesture on Flutter, right? And do I need to install like the beta/dev version of the package animations (after this Open Container PR got merged)?
Unfortunately I'm not sure about the release processes or timeline. I think that there are no release channels for these individual packages, so the next release after this PR is merged will have it.
Hello, I want to ask whether this feature has been implemented in the latest version 3.22.0 of flutter? thank you!
Hello, I want to ask whether this feature has been implemented in the latest version 3.22.0 of flutter? thank you!
Here's the official Medium post for Flutter 3.22.0. I personally haven't updated yet, but based on the gifs, it looks like they now have both inter- and intra-app support. Hope that helps!
https://medium.com/flutter/whats-new-in-flutter-3-22-fbde6c164fe3#:~:text=Predictive%20back%20gesture
@comESK thank you for the link. I already read about the inter and intra app support for predictive back gesture with flutter (I have seen these gifs in a pull request where they were being developed so I know about that), but I don't know whether this particular feature (predictive back gesture for open container) is released yet. That's what I was asking in this PR😄again thank you for your replying.
From triage: @justinmc Is this PR still something you are planning on coming back to?
@bebaoboy This feature is not yet released because this PR is not merged yet.
@stuartmorgan Yes I plan to finish this.
(triage) Spoke to @justinmc last week and he indicated that this one is still on his radar.
(PR Triage): Hey @justinmc, would you like to keep this change open until you come back to it?
I plan to return to this but will close the PR for now.