Custom youtube like appbar - flutter

Tried recreating this UI using SliverAppBar but without getting scroll info i was not able to update the appbar title according to the position. Is there any other way to do this other than SliverAppBar or can i get the scroll position from the sliver to change the state of AppBar title accordingly?

Related

a custom silverAppBar with scrollUp animation - flutter

I want to create a SliverAppBar with up scroll animation.
the children of sliverAppBar are resized depending on the height of silverAppBar and the text should be invisible in the small size like below (with animation)
Qst: what is the best way to implement it
I used the SliverAppBar before but wasn't that complicated like the current example.
its my first time working on something like this.
so any suggestion would be helpful

How do i build an AppBar that has a background image and overlay text on it and a TabBar on the bottom which gets pinned on scroll?

I want to build something that is similar to the Masterclass app which has a background image and a tab bar which gets pinned to the top while scrolling down and the background image has overlay text which scrolls without affecting the background image. I want to replicate this in Flutter and need some help. Anyone who has an idea to replicate this UI would be of significant help.
To set up the static background image, we need to use the Stack widget which allows to layer its children. And the NestedScrollView widget for nested scroll views. You can find explanation and code here

Flutter , keeping container of a ListView on the top of the screen when scrolling down

how to keep a specific container of a ListView on the top of the screen when scrolling down?
for example:
appBar
image1(inside the listview)
tabs(should stay below appBar but image1 disappears when scrolling down)
list item 1
list item 2
....
navBar
You have to work with SliverList and SliverAppBar to achieve a layout like that.
Read more about it in this article.

how to Make Container() shrink when user scroll down the screen

i wanna shrink [ Description section ] when user scroll down.
like sliver appbar but reversed.
i expected to find flutter widget like sliver bottombar and i disappointed.
I want to Make Container() shrink when user scroll down the screen
and scroll up starting position make Container() expanded as first time.
How can i do this??
You could use AnimatedContainer https://flutter.dev/docs/cookbook/animation/animated-container (doc)
Also, you must use ScrollController https://api.flutter.dev/flutter/widgets/ScrollController-class.html (doc).
To listen for the scroll event, and each time when a user scrolls down/up maybe in some cases left/right, you will recalculate the height of your AnimatedContainer, and set a new state.

Content behind SliverAppBar

I use a CustomScrollView and for children I have SliverAppBar and SliverList. So right now list is being rendered after app bar but my app bar is transparent and I would like list to be rendered under app bar (basically ignoring AppBar). Is it possible to do?