-
Notifications
You must be signed in to change notification settings - Fork 479
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
ItemPosition doesn't give enough information #97
Comments
Can you define each of the items proposed below? const ItemPosition( How would you be using these to implement something like https://pub.dev/packages/sticky_headers? |
|
I edited the issue to remove the reference to https://pub.dev/packages/sticky_headers. In fact, that package in particular does work for ScrollablePositionedList, because ScrollablePositionedList uses two regular scrolls, and that StickyHeaders can get the necessary pixel position from these. In any case, there are other uses for knowing the exact pixel distances, instead of only the alignment. For example, I want to create another kind of StickyHeader that spans multiple items. This is what I am trying to do to implement a sticky header in a vertical scroll:
I can't do that without the pixel information. |
The is the current provided information:
const ItemPosition(
{@required this.index,
@required this.itemLeadingEdge,
@required this.itemTrailingEdge});
This is not nearly enough for all kinds of applications. For example, with the above info I can't implement a multi-item sticky-headers.
It should be:
Also, how can I get the length of the viewport?
The text was updated successfully, but these errors were encountered: