Skip to content
pubscout

easy_sticky_header

1.1.1, released 3 years ago by crasowas.dev

An easy-to-use and powerful sticky header for any widget that supports scrolling.

WASM-readyRepository archived
$ flutter pub add easy_sticky_header
Source repository

What it does

Provides a sticky header mechanism for horizontal, vertical, or reverse scrolling widgets. Supports dynamic header building, custom transition animations, grouping, and infinite lists.

AI-written summary of version 1.1.1, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need sticky headers inside a scrolling widget like ListView.
  • You require advanced features like header grouping, reverse scrolling, or jumping to specific headers.

Skip it when

  • You are not using a scrollable widget.
  • You require state management or navigation utilities rather than UI widgets.

Strengths

  • Supports both horizontal and vertical scrolling, including reverse and infinite lists.
  • Allows dynamic building of header widgets with custom transition animations.
  • Includes features for grouping and jumping to specified header indexes.

Weaknesses

  • Not documented for non-Flutter environments.
  • Limited to sticky header functionality.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0

not documented

StickyHeader(
  child: ListView.builder(
    itemCount: 100,
    itemBuilder: (context, index) {
      if (index % 3 == 0) {
        return StickyContainerWidget(
          index: index,
          child: Container(
            height: 50,
            child: Text('Header #$index'),
          ),
        );
      }
      return Container(height: 80);
    },
  ),
);

Alternatives

Packages that do the same job and could replace easy_sticky_header.