Size transition on a Sliver

Viewed 225

I am looking to animate CupertinoSliverNavigationBar size to 0 programatically. I was looking for a SliverSizeTransition or SliverAnimatedContainer or something like that but couldn't find one.

There is SliverAnimatedOpacity but that only animates the opacity and not the height. Currently hacking by scrolling by some 50 offset along with animating the opacity.

Any suggestions?

1 Answers

I didn't test this, but try :

SliverToBoxAdapter( 
    child: AnimatedContainer(..),
)
Related