Commit efbcb0aa authored by Ian Hickson's avatar Ian Hickson

Fix docs for Divider. (#3364)

Fixes https://github.com/flutter/flutter/issues/3363
parent b5e471ee
...@@ -8,13 +8,15 @@ import 'theme.dart'; ...@@ -8,13 +8,15 @@ import 'theme.dart';
/// A material design divider. /// 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. /// 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 /// To create a one-pixel divider between items in a list, consider using
/// [ListItem.divideItems], which is optimized for this case. /// [ListItem.divideItems], which is optimized for this case.
/// ///
/// See also: /// See also:
///
/// * [ListItem.divideItems] /// * [ListItem.divideItems]
/// * <https://www.google.com/design/spec/components/dividers.html> /// * <https://www.google.com/design/spec/components/dividers.html>
class Divider extends StatelessWidget { class Divider extends StatelessWidget {
...@@ -41,7 +43,8 @@ class Divider extends StatelessWidget { ...@@ -41,7 +43,8 @@ class Divider extends StatelessWidget {
/// The color to use when painting the line. /// 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; final Color color;
@override @override
......
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