How to make scroll animations with flutter - flutter

How can I make scroll animations in flutter. Here is an example of what I want to create: https://www.apple.com/macbook-air-m2/. As you can see, when you scroll downwards the page is animated very nicely. I would like to create this sort of thing in flutter. Please specify if something like this will not work on any of flutters platforms.

Related

Flutter: Achieving custom page swipe animation with pageview

I'm trying to make a custom animation for pageview and was looking for some guidance.
I already tried using transformer pageview but in my use case it's crashing and found it unreliable.
I'm looking to implement 2 animations
depth based transition where a pages move behind and scale back
regular overlay, during swipe pages are stacked on top of each other
I want to know if it's possible to achieve this with regular pageview, if so how do I go about it?
Appreciate your help

How to do trajectory animation in Flutter?

I'm looking for trajectory animation just like how https://leo9studio.com/ has done. You see while scrolling, those balls get scrolled from top to bottom. How can we replicate exactly in Flutter Web?
Additionally, how to create such a smooth scrolling effect in Flutter?
rive.app would be a good place to start looking, since you aren't really providing any context or code other than just a random idea, they have a great community and I have used their packaged for some neat animation on my web apps. They have a way to create your own designs and animations which would probably be the case there, unless you wanted to make it all with code then that would be a different story.
Or look at this post here How to animate a path in flutter?

How to animate fullscreen photo transition on swipe, like in Telegram?

When you swipe vertically, image is dragged towards the swipe, with fading out animation of black background.
And after release, it smoothly returns to it's previous position on the screen, like Hero animation does.
How is it possible to recreate such an effect using Flutter? The same scenario, in fullscreen photo view.
photo_view package is desired for fullscreen, so it shouldn't interfere with zooming.
What you need is actually an out-of-the-box widget, and it's surprisingly easy to use. It's called Hero. Basically, you wrap the widget you want to animate like that in a Hero widget, with a specific tag string, and, when you navigate to another screen, you wrap the destination widget in another Hero with the same tag. An effect like the one you shared can be achieved by wrapping two widgets with the same photo with Heroes in different PageRoutes.
Check out this Flutter widget of the week video to get you started, and this Flutter.dev article for a more detailed explanation on Hero widgets.
Edit: I see you are looking for a more specific image-viewer behavior. Then, I suggest you use the photo_view package, which includes many functionalities to visualize images, including the hero transition with swipe-dow-to-dismiss behaviors, pinching to zoom, etc.
I found the solution.
To create such an animation, you should use extended_image package, which has SlideOutPage widget for creation of such transitions.

Custom BouncingScroll Effect in flutter

Project
Hi, I was playing around with bouncing scroll physics in flutter, trying to achieve a specific behaviour.
Here is a simple mockup
BouncingScrollPhysics in flutter create this overscroll effect on top of a listview adding some space in relation to user scroll.
Question
Is it possible to extend this behaviour also to the spacing between list view elements? I noticed this kind of behaviour in some ios apps lately and i wanted to understand if this is achievable in flutter.
Hope someone can help with this, it's really cool effect.
Thanks

How to implement persistent bottom sheet like Apple Maps

I was wondering how you would go about implementing a persistent bottom sheet that has an initial height and then expands into two positions.
Initial position - https://i.stack.imgur.com/1QlPu.png
Expanded position - https://i.stack.imgur.com/LeXTJ.png
Fullscreen position - https://i.stack.imgur.com/L6WBq.png
I'm also trying to implement something similar to this, and so far my research led me to using customscrollview and slivers. But the UI is not quite the same, the main ui behind (based on your image = map) would actually animate a bit upward after trying to expand the view on top.
I will be trying out other things, like using stack with the front view having the same implementation as the customscrollview I mentioned, and making it transparent so the back view would still be displayed.
I hope this helped.