From 82eeb94045d22d358e1969d09b8b68835498137f Mon Sep 17 00:00:00 2001 From: Anthony <591699+clocksmith@users.noreply.github.com> Date: Tue, 19 May 2020 20:57:09 -0400 Subject: [PATCH] move paragraph about wide viewports up (#57521) --- packages/flutter/lib/src/material/navigation_rail.dart | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/flutter/lib/src/material/navigation_rail.dart b/packages/flutter/lib/src/material/navigation_rail.dart index 81de205af2..adbc32026a 100644 --- a/packages/flutter/lib/src/material/navigation_rail.dart +++ b/packages/flutter/lib/src/material/navigation_rail.dart @@ -20,6 +20,10 @@ import 'theme_data.dart'; /// app to navigate between a small number of views, typically between three and /// five. /// +/// The navigation rail is meant for layouts with wide viewports, such as a +/// desktop web or tablet landscape layout. For smaller layouts, like mobile +/// portrait, a [BottomNavigationBar] should be used instead. +/// /// A navigation rail is usually used as the first or last element of a [Row] /// which defines the app's [Scaffold] body. /// @@ -27,10 +31,6 @@ import 'theme_data.dart'; /// specified with [NavigationRailTheme]. The default values for null theme /// properties are based on the [Theme]'s [ThemeData.textTheme], /// [ThemeData.iconTheme], and [ThemeData.colorScheme]. -// -/// The navigation rail is meant for layouts with wide viewports, such as a -/// desktop web or tablet landscape layout. For smaller layouts, like mobile -/// portrait, a [BottomNavigationBar] should be used instead. /// /// Adaptive layouts can build different instances of the [Scaffold] in order to /// have a navigation rail for more horizontal layouts and a bottom navigation