flutter_sticky_header 0.11.0
flutter_sticky_header: ^0.11.0 copied to clipboard
Flutter implementation of sticky headers as a sliver. Use it in a CustomScrollView.
0.11.0 #
Added #
stickToEndparameter onSliverStickyHeaderandSliverStickyHeader.builder. The header is displayed after its sliver and sticks to the end of the viewport: at the top in a reversed list (e.g. a chat) or for the slivers before thecenterof aCustomScrollView, and as a sticky footer in a list which is not reversed (https://github.com/letsar/flutter_sticky_header/pull/123).
Fixed #
- A
SliverStickyHeaderwithout header no longer throws during layout, and its content is no longer shifted when its header is removed (https://github.com/letsar/flutter_sticky_header/pull/124).
0.10.0 #
Added #
onStateChangedparameter onSliverStickyHeaderandSliverStickyHeader.builder, called after a frame when theSliverStickyHeaderStateof the header changes (https://github.com/letsar/flutter_sticky_header/pull/120).
Changed #
- The package no longer depends on the material library, only on the widgets library (https://github.com/letsar/flutter_sticky_header/pull/119).
Fixed #
- The header now follows its sliver when the viewport is overscrolled at the start, instead of staying at the start of the viewport and leaving a gap above the content (https://github.com/letsar/flutter_sticky_header/pull/121). As a consequence, a header below a pinned
SliverAppBarnow moves away from the app bar during this overscroll, like the content does.
0.9.0 #
Fixed #
- Hit testing of headers. Taps now reach:
- a scrolled not sticky header;
- a not sticky header below a pinned sliver, such as a pinned
SliverAppBar; - the content painted above a header pinned below a sliver which doesn't absorb taps;
- the content on the first pixel after a header.
- The
localPositionreceived by a header pushed by the end of its section, or pinned below another pinned sliver. - The
localPositionreceived by the content, which was shifted by the header extent. If you compensated for this offset in your code, remove the compensation. Scrollable.ensureVisiblewhen the header overlaps the content (https://github.com/letsar/flutter_sticky_header/pull/60).- Headers built with
SliverStickyHeader.builderwhose extent depends on their state: the content no longer keeps the previous extent until the next layout.
Added #
- An example with a header smaller when pinned.
- A section in the README about
SliverMainAxisGroup.
0.8.0 #
0.7.0 #
Changed #
- Update Flutter and Dart SDK constraints.
- Update usage of hashValues (https://github.com/letsar/flutter_sticky_header/pull/100)
- Update version of value_layout_builder.
0.6.4 #
Fixed #
- Not passing right overlap contraints to sliver child. Now we can create nested sticky headers!
0.6.0 #
Changed #
- Migrated to sound null-safety.
- Increase the minimum version of Flutter.
- Increase the minimum version of Dart SDK.
0.4.6 #
0.4.0 #
- Updated SDK constraint to support new error message formats.
- Updated error message formats
0.3.1 #
Fixed #
- Hit test implementation (https://github.com/letsar/flutter_sticky_header/issues/7)
0.3.0 #
0.2.0 #
0.1.0 #
- Initial Open Source release.