-
Notifications
You must be signed in to change notification settings - Fork 16
added support for hiding header onListViewScroll #2041
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
sample.mp4 |
: buildFixedPageContent(fixedAppBar != null), | ||
footer: footerWidget, | ||
), | ||
body: FooterLayout( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please format the code.
} else { | ||
externalScrollController = ScrollController(); | ||
persistentControllers[currentPageKey!] = externalScrollController!; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why this if-and-else
is having the same thing happening?
final scrollingDown = currentOffset < _previousOffset; | ||
|
||
if (scrollingUp) { | ||
currentExternalScrollController!.animateTo(100, duration: const Duration(milliseconds: 16), curve: Curves.linear); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please use the values from animation
map and then have these as default values if not given.
Added support for hiding header when a user scrolls in listview.
added a new function buildScrollablePageContentWithCollapsableHeader that will be invoked only if we have set collapsableHeader property true in header styles
when header collaps, body exceeds the defined SafeArea, to prevent this, I've added safe area for this scenario as well. we will need to set collapseSafeArea to true in header styles
also added floating property to AnimationHeader