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.
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.
- flutter_sticky_header
Flutter sliver implementation of sticky headers for CustomScrollView.
91Compare - data_table_2
In-place substitute for Flutter's DataTable and PaginatedDataTable with sticky headers.
83Compare - alphabet_list_view
A ListView with sticky headers and an iOS-like clickable sidebar.
76Compare - sticky_infinite_list
Infinite scroll list with sticky headers supporting multiple directions.
69Compare