Skip to content

[Proposal]SliverPersistantHeader should support Sticky Headers #108289

@Areopagitics

Description

@Areopagitics

Use case

Many other frameworks come with this feature out of the box. There are 5 packages that provide sticky headers, none of which work properly in a CustomScrollView with a center key on a Sliver (sticky_headers doesn't even work with CustomScrollView). Each tries to make up for the failings of the other.

https://pub.dev/packages/flutter_sticky_header
https://pub.dev/packages/sticky_headers
https://pub.dev/packages/sticky_and_expandable_list
https://pub.dev/packages/sticky_infinite_list
https://pub.dev/packages/sticky_and_expandable_list

Proposal

SliverPersistantHeader really should have a property (sticky) that allows for sticky headers.

sticky_header_all

Metadata

Metadata

Assignees

Labels

P3Issues that are less important to the Flutter projectc: new featureNothing broken; request for a new capabilitycustomer: googleVarious Google teamsf: scrollingViewports, list views, slivers, etc.frameworkflutter/packages/flutter repository. See also f: labels.

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions