Relative Content

Tag Archive for fluttersliverappbar

Change color of sliver app bar in collapsed state: Flutter

I am working on a Flutter Application in which I have the following behaviour –
We have a appbar and a carousel slider component. I want to achieve a behaviour where the Sliver App var consists of the actual Appbar in title (logo, action items) and below it we have the horizontal scroll able banner component. When the page is scrolled, the banner component disappears and the appbar sticks to the top. In expanded state, the whole sliver app bar has a common gradient applied to it. When scrolled and appbar is collapsed, the color changes to a solid color.