A Flutter demo of a custom widget based on SliverPersistentHeader. The image is placed at the top of a CustomScrollView and will collapse as the view is scrolled up.
The main Widget is in the sliverimage.dart file.
Clone the repo and run the app.
For help getting started with Flutter, view the online documentation.
https://medium.com/@diegoveloper/flutter-collapsing-toolbar-sliver-app-bar-14b858e87abe