What is the main difference between SliverAppBar and SliverPersistentHeader ?
What differ most in terms of their usage purpose ?
What is the main difference between SliverAppBar and SliverPersistentHeader ?
What differ most in terms of their usage purpose ?
SliverAppBar :
SliverAppBar
is a Material Design widget in flutter which gives scrollable or collapsible app-bar. The word Sliver is given to scrollable areas here. SliverAppBar
basically gives us means to create an app-bar that can change appearance, blend in the background, or even disappear as we scroll.
SliverPersistentHeader :
A sliver whose size varies when the sliver is scrolled to the edge of the viewport opposite the sliver's GrowthDirection
. In the normal case of a CustomScrollView
with no centered sliver, this sliver will vary its size when scrolled to the leading edge of the viewport.
See this Video also. for SliverAppBar
and SliverPersistentHeader
Refer SliverAppBar
here
Refer SliverPersistentHeader
here
© 2022 - 2024 — McMap. All rights reserved.
SliverPersistentHeader
can be used to create aSliverAppBar
with custom behavior. Check the link for more info: youtube.com/… – Femineity