1

I've tried scouring the Internet for a solution but every current available solution are with some expandedHeight.

I am looking for a solution to just move the title of a SliverAppBar to the center of the appbar upon scroll.

I wonder if AnimatedWidget should be used or is there a simpler solution?

Appreciate some examples and guidance.

H Wong
  • 331
  • 3
  • 16

1 Answers1

0
snap: false;
pinned: true;
floating: false;

Should do the trick.

Alex Terente
  • 12,006
  • 5
  • 51
  • 71
  • Thanks, but I tried the above, didn't really work. I read https://medium.com/flutter-community/flutter-sliverappbar-snap-those-headers-544e097248c0 seems like this solution need a flexible bar with expanded height too. – H Wong Sep 28 '21 at 07:33