sticky_header_list 1.0.1 copy "sticky_header_list: ^1.0.1" to clipboard
sticky_header_list: ^1.0.1 copied to clipboard

discontinued
outdated

Sticky headers list

sticky_header_list #

Sticky Header list for Flutter.

Usage #

You need to wrap your widgets with StickyListRow. Use HeaderRow for headers that sticks and RegularRow for regular rows that scroll normally.

Height is optional, but if you include it, it will avoid usage of GlobalKeys to determine height:

new StickyRow(child: yourWidget, height: 20.0)

Usage is similar to ListView. You can either supply list:

new StickyList(
      children: <StickyWidget>[
        new StickyRow(child: yourWidget),
        new RegularRow(child: yourWidget),
        new RegularRow(child: yourWidget),
        new StickyRow(child: yourWidget),
        new RegularRow(child: yourWidget),
        /...
      ],
    );

Or you can use builder:

return new StickyList.builder(
      builder: (BuildContext context, int index) {
        if (something)
          return new StickyRow(yourWidget)
        else
          return new RegularRow(yourWidget)
      },
      itemCount: 20,
    );
2
likes
0
pub points
19%
popularity

Publisher

unverified uploader

Sticky headers list

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on sticky_header_list