docs: Add more potential use case for Bottom Navigation Bar (#99644)

This commit is contained in:
Aman Verma
2022-06-23 22:47:06 +05:30
committed by GitHub
parent 912b81f6bf
commit 3022db2bf3
3 changed files with 161 additions and 0 deletions

View File

@@ -118,6 +118,15 @@ enum BottomNavigationBarLandscapeLayout {
///
/// ** See code in examples/api/lib/material/bottom_navigation_bar/bottom_navigation_bar.1.dart **
/// {@end-tool}
///
/// {@tool dartpad}
/// This example shows [BottomNavigationBar] used in a [Scaffold] Widget with
/// different interaction patterns. Tapping twice on the first [BottomNavigationBarItem]
/// uses the [ScrollController] to animate the [ListView] to the top. The second
/// [BottomNavigationBarItem] shows a Modal Dialog.
///
/// ** See code in examples/api/lib/material/bottom_navigation_bar/bottom_navigation_bar.2.dart **
/// {@end-tool}
/// See also:
///
/// * [BottomNavigationBarItem]