kotlin – Recreating an animation in flutter

I saw this animation in an android app made with kotlin
And since 2 days i been trying to recreate this animation in flutter but since i am new to flutter i am having trouble recreating it.

I have tried using a CustomScrollView with AnimatedSwitcher but then it doesn’t a stick to the screen so I tried using SliverPersistentHeader making a delegate extending SliverPersistentHeaderDelegate then it becomes sticky but it doesn’t go to the top of screen like in the video and also i don’t know why but the above solution throws a bottom overflow error when scrolled too fast.

Thank you.

Read more here: Source link