Add an interactive example for Overlay (#107531)

This commit is contained in:
Taha Tesser
2022-07-15 12:44:05 +03:00
committed by GitHub
parent c422d280ab
commit cf342254cc
3 changed files with 291 additions and 0 deletions

View File

@@ -278,6 +278,13 @@ class _OverlayEntryWidgetState extends State<_OverlayEntryWidget> {
/// navigation and being able to insert widgets on top of the pages in an app.
/// To simply display a stack of widgets, consider using [Stack] instead.
///
/// {@tool dartpad}
/// This example shows how to use the [Overlay] to highlight the [NavigationBar]
/// destination.
///
/// ** See code in examples/api/lib/widgets/overlay/overlay.0.dart **
/// {@end-tool}
///
/// See also:
///
/// * [OverlayEntry], the class that is used for describing the overlay entries.