I'm looking to create a header effect like this:
Specifically, I want it so when the user overscrolls on iOS, the image should zoom to fill the extra space. Then, on Android and iOS, when the user starts scrolling down the screen, the header should be scrolled away with a parallax effect.
I pulled the above screen video from this package here: https://github.com/gskbyte/GSKStretchyHeaderView
Another example can be found here: https://medium.freecodecamp.org/tutorial-creating-stretchy-layouts-on-ios-using-auto-layout-3fa974fa5e28
I was playing around with SliverPersistentHeader
s and FlexibleSpaceBar
s but I was unable to get this effect quite how I wanted it.
Think what you are going to need is Sliver app bar with the flexible space bar. Take a look here: https://medium.com/@diegoveloper/flutter-collapsing-toolbar-sliver-app-bar-14b858e87abe.
Consider using approach from stretchy header package
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With