Add an example for AppBar.notificationPredicate (#106018)

This commit is contained in:
Taha Tesser
2022-07-15 12:40:06 +03:00
committed by GitHub
parent 74bf27cbd7
commit c422d280ab
3 changed files with 151 additions and 0 deletions

View File

@@ -140,6 +140,14 @@ class _PreferredAppBarSize extends Size {
/// ** See code in examples/api/lib/material/app_bar/app_bar.2.dart **
/// {@end-tool}
///
/// {@tool dartpad}
/// This example shows how to listen to a nested Scrollable's scroll notification
/// in a nested scroll view using the [notificationPredicate] property and use it
/// to make [scrolledUnderElevation] take effect.
///
/// ** See code in examples/api/lib/material/app_bar/app_bar.3.dart **
/// {@end-tool}
///
/// See also:
///
/// * [Scaffold], which displays the [AppBar] in its [Scaffold.appBar] slot.