Open
Description
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:
const ItemPosition(
{@required this.index,
@required this.leadingAlignment,
@required this.trailingAlignment,
@required this.leadingPixelDistance,
@required this.trailingPixelDistance,
@required this.length,
});
Also, how can I get the length of the viewport?