Thank You AI
To make SliverAppBar behave like a collapsing toolbar in flutter we need to configure NestedScrollView.