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:
Istiak Ahmed
2023-05-06 00:09:25 +06:00
committed by GitHub
parent f57d38f7f2
commit 042eaf6b90
3 changed files with 143 additions and 0 deletions

View File

@@ -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.
///