Skip to content

ItemPosition doesn't give enough information #97

Open
@marcglasberg

Description

@marcglasberg

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    SPL-pixelsIssues asking for pixel level info or controlenhancementNew feature or requestp: scrollable_positioned_listRelated to package:scrollable_positioned_list

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions