From 05d1a105920f8db66538ed08ecde6d5057fc2bf3 Mon Sep 17 00:00:00 2001 From: Kate Lovett Date: Thu, 4 Apr 2019 14:17:14 -0700 Subject: [PATCH] Embedding the diagram for BottomNavigationBar. (#30468) --- .../flutter/lib/src/material/bottom_navigation_bar.dart | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/packages/flutter/lib/src/material/bottom_navigation_bar.dart b/packages/flutter/lib/src/material/bottom_navigation_bar.dart index 27549126da..061457fa71 100644 --- a/packages/flutter/lib/src/material/bottom_navigation_bar.dart +++ b/packages/flutter/lib/src/material/bottom_navigation_bar.dart @@ -65,12 +65,15 @@ enum BottomNavigationBarType { /// {@tool snippet --template=stateful_widget_material} /// This example shows a [BottomNavigationBar] as it is used within a [Scaffold] /// widget. The [BottomNavigationBar] has three [BottomNavigationBarItem] -/// widgets and the [currentIndex] is set to index 1. The selected item is +/// widgets and the [currentIndex] is set to index 0. The selected item is /// amber. The `_onItemTapped` function changes the selected item's index /// and displays a corresponding message in the center of the [Scaffold]. /// +/// ![A scaffold with a bottom navigation bar containing three bottom navigation +/// bar items. The first one is selected.](https://flutter.github.io/assets-for-api-docs/assets/material/bottom_navigation_bar.png) +/// /// ```dart -/// int _selectedIndex = 1; +/// int _selectedIndex = 0; /// static const TextStyle optionStyle = TextStyle(fontSize: 30, fontWeight: FontWeight.bold); /// static const List _widgetOptions = [ /// Text(