From efbcb0aa0c2b053801285e407c97218fbc450e71 Mon Sep 17 00:00:00 2001 From: Ian Hickson Date: Fri, 15 Apr 2016 15:40:04 -0700 Subject: [PATCH] Fix docs for Divider. (#3364) Fixes https://github.com/flutter/flutter/issues/3363 --- packages/flutter/lib/src/material/divider.dart | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/packages/flutter/lib/src/material/divider.dart b/packages/flutter/lib/src/material/divider.dart index b147a824f0..cda4304a6e 100644 --- a/packages/flutter/lib/src/material/divider.dart +++ b/packages/flutter/lib/src/material/divider.dart @@ -8,13 +8,15 @@ import 'theme.dart'; /// A material design divider. /// -/// A one logical pixel thick horizontal line. +/// A one logical pixel thick horizontal line, with padding on either +/// side. The box's total height is controlled by [height]. /// /// Dividers can be used in lists and [Drawer]s to separate content vertically. /// To create a one-pixel divider between items in a list, consider using /// [ListItem.divideItems], which is optimized for this case. /// /// See also: +/// /// * [ListItem.divideItems] /// * class Divider extends StatelessWidget { @@ -41,7 +43,8 @@ class Divider extends StatelessWidget { /// The color to use when painting the line. /// - /// Defaults to [ThemeData.dividerColor]. + /// Defaults to the current theme's divider color, given by + /// [ThemeData.dividerColor]. final Color color; @override