Skip to content

Commit 098aa45

Browse files
authored
Fix NavigationDestination API doc (#103031)
1 parent 3c9f417 commit 098aa45

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

packages/flutter/lib/src/material/navigation_bar.dart

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -217,16 +217,13 @@ enum NavigationDestinationLabelBehavior {
217217
onlyShowSelected,
218218
}
219219

220-
/// Destination Widget for displaying Icons + labels in the Material 3
221-
/// Navigation Bars through [NavigationBar.destinations].
220+
/// A Material 3 [NavigationBar] destination.
222221
///
223-
/// The destination this widget creates will look something like this:
224-
/// =======
225-
/// |
226-
/// | ☆ <-- [icon] (or [selectedIcon])
227-
/// | text <-- [label]
228-
/// |
229-
/// =======
222+
/// Displays a label below an icon. Use with [NavigationBar.destinations].
223+
///
224+
/// See also:
225+
///
226+
/// * [NavigationBar], for an interactive code sample.
230227
class NavigationDestination extends StatelessWidget {
231228
/// Creates a navigation bar destination with an icon and a label, to be used
232229
/// in the [NavigationBar.destinations].

0 commit comments

Comments
 (0)