-
Notifications
You must be signed in to change notification settings - Fork 18
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
Page Transitions #30
Comments
I think I have some code around here somewhere that makes it easy to use a shader with a page transition builder, let me see if I can find it. That would be a reasonable addition to this package. |
That would be awesome. I was trying something like this but at the moment i only get back a black screen when trying to go to Page2:
|
Ok i got it working for the target page: The only missing thing is having access to the from page image in order to do decisive renderings like this in the .frag file:
This is where an update of your package could help. I have something like this in mind:
|
Ahh I think I remember why I was having problems with this. Its fairly easy to run a shader over a single page as part of a page transition, but getting both pages requires some cooperation from the theme objects. let me think about this one for a bit. |
Ok, i will also continue my investigations. |
I got it working: The caveat is that the page which serves as the from page needs to be wrapped with a
With that a
and used as the So in general it would work, but if you have a better solution which doesn't need the wrapping with EDIT: Using this method (slightly modified) from Screenshot package it works without wrapping the from page with EDIT2: After further tests i've seen that using the method from EDIT doesn't work with a |
Hi Jonah,
Of course 2 packages are needed to accomplish this - which is ok for me. I'm looking forward to your opinion. |
Hi there,
i would like to implement outstanding page transitions for my current Flutter game and was wondering if your package could be used for using e.g. this shader as a page transition between two pages in the
transitionsBuilder
part of aPageRouteBuilder
?My idea is to wrap the target page with AnimatedBuilder->ShaderBuilder->AnimatedSampler where the shader could output values for finally showing that page to the user.
Would that somehow be possible? Or do you have another idea how page transitions using shaders could be realized?
Thank you very much.
The text was updated successfully, but these errors were encountered: