flutter/examples/api/lib/widgets/sliver
Hans Muller abd7cd0528
PinnedHeaderSliver example based on the iOS Settings AppBar (#151205)
A relatively elaborate PinnedSliverHeader example which creates an app bar that's similar to the one that appears in the iOS Settings app. In this example the pinned header starts out transparent and the first item in the list serves as the app's "Settings" title. When the title item has been scrolled completely behind the pinned header, the header animates its opacity from 0 to 1 and its (centered) "Settings" title appears. The fact that the header's opacity depends on the height of the title item - which is unknown until the list has been laid out - necessitates monitoring its SliverConstraints.scrollExtent from a scroll NotificationListener. 

https://github.com/flutter/flutter/assets/1377460/539e2591-d0d7-4508-8ce8-4b8f587d7648
2024-07-03 20:06:16 +00:00
..
decorated_sliver.0.dart Fix DecoratedSliver sample code to reflect the description (#148621) 2024-05-23 08:52:15 +00:00
pinned_header_sliver.0.dart PinnedHeaderSliver (#143196) 2024-06-07 21:27:06 +00:00
pinned_header_sliver.1.dart PinnedHeaderSliver example based on the iOS Settings AppBar (#151205) 2024-07-03 20:06:16 +00:00
sliver_constrained_cross_axis.0.dart Sliver Constrained Cross Axis (#125239) 2023-04-24 23:17:36 +00:00
sliver_cross_axis_group.0.dart Sliver Cross Axis Group (#123862) 2023-04-28 23:41:58 +00:00
sliver_floating_header.0.dart SliverFloatingHeader (#151145) 2024-07-03 19:52:52 +00:00
sliver_main_axis_group.0.dart Sliver Main Axis Group (#126596) 2023-06-08 15:54:09 -07:00
sliver_opacity.1.dart Rename Sample classes (#124080) 2023-04-04 20:34:29 +00:00
sliver_resizing_header.0.dart SliverResizingHeader (#143325) 2024-06-06 22:35:12 +00:00
sliver_tree.0.dart Reland TreeSliver (#149839) 2024-06-17 19:49:05 +00:00
sliver_tree.1.dart Reland TreeSliver (#149839) 2024-06-17 19:49:05 +00:00