flutter/examples/api/test
Hans Muller 9ce0a9e510
PinnedHeaderSliver (#143196)
A sliver that remains “pinned” to the top of the scroll view. Subsequent slivers scroll behind it. Typically the sliver is created as the first item in the list however it can be inserted anywhere and it will always stop at the top of the scroll view. When the scrolling axis is vertical, the PinnedHeaderSliver’s height is defined by its widget child. Multiple PinnedHeaderSlivers will layout one after the other, once they've scrolled to the top.

This sliver is preferable to the general purpose SliverPersistentHeader - for its relatively narrow use case - because there's no need to create a [SliverPersistentHeaderDelegate] or to predict the header's size.

Here's a [working demo in DartPad](https://dartpad.dev/?id=3b3f24c14fa201f752407a21ca9c9456).

https://github.com/flutter/flutter/assets/1377460/943f2e02-8e73-48b7-90be-61168978ff71

Related sliver utility PRs: https://github.com/flutter/flutter/pull/143538, https://github.com/flutter/flutter/pull/143325, https://github.com/flutter/flutter/pull/127340.
2024-06-07 21:27:06 +00:00
..
animation/animation_controller Added an AnimationController API doc example (#137975) 2023-11-07 13:33:20 -08:00
cupertino Write Tests for API Examples of cupertino_text_field.0, data_table.0, icon_button.2 & ink_well.0 (#139258) 2023-11-30 20:07:00 +00:00
gestures/tap_and_drag Add an example for TapAndPanGestureRecognizer (#131873) 2023-08-09 19:59:03 +00:00
material Add test for dropdown_menu.1.dart (#149547) 2024-06-07 07:13:02 +00:00
painting Fix painting API examples tests directories structure. (#148177) 2024-05-20 17:44:37 +00:00
rendering An example of parentData usage. (#131818) 2023-08-10 19:40:06 +00:00
sample_templates Re-Land "Actually add example templates (#111531)" (#111666) 2022-09-15 16:17:06 +00:00
services Rename Sample classes (#124080) 2023-04-04 20:34:29 +00:00
ui/text Animate TextStyle.fontVariations (#138881) 2023-12-08 09:08:26 +00:00
widgets PinnedHeaderSliver (#143196) 2024-06-07 21:27:06 +00:00
flutter_test_config.dart flutter test --wasm support (#145347) 2024-03-21 20:08:07 +00:00
goldens_io.dart Revert "Allow Flutter golden file tests to be flaky (#114450)" (#114902) 2022-11-08 09:26:55 -08:00
goldens_web.dart Revert "Allow Flutter golden file tests to be flaky (#114450)" (#114902) 2022-11-08 09:26:55 -08:00