Commit 8d2dcc3c authored by Ian Hickson's avatar Ian Hickson Committed by Adam Barth

Trivial improvements to the Drawer docs. (#8043)

Having the drawer docs lead with "this is a drawer" wasn't very
helpful when scanning.

qv. study P6.
parent 6873cdfe
...@@ -25,17 +25,16 @@ const double _kEdgeDragWidth = 20.0; ...@@ -25,17 +25,16 @@ const double _kEdgeDragWidth = 20.0;
const double _kMinFlingVelocity = 365.0; const double _kMinFlingVelocity = 365.0;
const Duration _kBaseSettleDuration = const Duration(milliseconds: 246); const Duration _kBaseSettleDuration = const Duration(milliseconds: 246);
/// A material design drawer. /// A material design panel that slides in horizontally from the edge of a
/// [Scaffold] to show navigation links in an application.
/// ///
/// Typically used in the [Scaffold.drawer] property, a drawer slides in from /// Drawers are typically used with the [Scaffold.drawer] property. The child of
/// the side of the screen and displays a list of items that the user can /// the drawer is usually a [ListView] whose first child is a [DrawerHeader]
/// interact with. /// that displays status information about the current user.
/// ///
/// Typically, the child of the drawer is a [SliverList] whose first child is a /// The [AppBar] automatically displays an appropriate [IconButton] to show the
/// [DrawerHeader] that displays status information about the current user. /// [Drawer] when a [Drawer] is available in the [Scaffold]. The [Scaffold]
/// /// automatically handles the edge-swipe gesture to show the drawer.
/// The [Scaffold] automatically shows an appropriate [IconButton], and handles
/// the edge-swipe gesture, to show the drawer.
/// ///
/// See also: /// See also:
/// ///
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment