Skip to content
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

SliverWithPinnedFooter #59

Closed
wants to merge 1 commit into from
Closed

Conversation

Kavantix
Copy link
Owner

@Kavantix Kavantix commented Sep 3, 2022

This PR consists of a first attempt at making a SliverPinnedFooter.

TODO:

  • Tests
  • Add to readme

Closes #20

@Kavantix Kavantix marked this pull request as draft September 3, 2022 22:31
@Kavantix Kavantix mentioned this pull request Sep 3, 2022
@Aqua-Ye
Copy link

Aqua-Ye commented May 12, 2023

Thanks for this PR. However I notice that when I use it with a reversed list, the list rendered area shrink when I scroll through multiple sections with SliverWithPinnedFooter. Not to mention that the footer is still at the bottom of the section, although it should be on top (I did fix that by changing the paint method).

device-2023-05-12-153632.mp4

Any idea how I could fix the shrinking?

offset.dy +
geometry.paintOrigin +
geometry.paintExtent -
footer.size.height,
Copy link

@TomBursch TomBursch Jan 2, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To fix the footer appearing first, line 99 should be replaced with min(footer.size.height, geometry.paintExtent) (same for the hitTest)

@Kavantix Kavantix closed this Jun 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

SliverPinnedFooter
3 participants