Add sample code for SliverAppBar (#125785)
This PR adds an another example for SliverAppBar, showing the use of stretch and onStretchTrigger https://user-images.githubusercontent.com/68919043/235420973-2bfb9871-9e05-4d87-9538-941d43178c76.mp4 Fixes #125651 ### Adds sample code for SliverAppBar [stretch, onStretchTrigger] This PR adds an another simple and easily understandable example code for SliverAppBar.
This commit is contained in:
@@ -1398,6 +1398,13 @@ class _SliverAppBarDelegate extends SliverPersistentHeaderDelegate {
|
||||
/// {@end-tool}
|
||||
///
|
||||
/// {@tool dartpad}
|
||||
/// Here is an example of [SliverAppBar] when using [stretch] and [onStretchTrigger].
|
||||
///
|
||||
/// ** See code in examples/api/lib/material/app_bar/sliver_app_bar.4.dart **
|
||||
/// {@end-tool}
|
||||
///
|
||||
///
|
||||
/// {@tool dartpad}
|
||||
/// This sample shows a [SliverAppBar] and it's behavior when using the
|
||||
/// [pinned], [snap] and [floating] parameters.
|
||||
///
|
||||
|
||||
Reference in New Issue
Block a user