Learn how to build Twitter’s animated header using SliverAppBar in flutter. This is also an example to animate appbar on scroll or animate header on scroll.
This animation can be done easily using Flutter’s built-in widgets! The Header would be initially expanded with a larger height. The app bar shrinks on scroll and sticks to the top. This is also an example of sticky header in Flutter or sticky app bar in Flutter or a sticky navbar in Flutter