Minor documentation fixes (Material, Column) (#10365)

This commit is contained in:
Ian Hickson 2017-05-27 16:59:45 -07:00 committed by GitHub
parent e548d46562
commit f437d025b8
2 changed files with 10 additions and 4 deletions

View File

@ -37,7 +37,10 @@ import 'theme.dart';
/// ///
/// ![The highlight is a rectangle the size of the box.](https://flutter.github.io/assets-for-api-docs/material/ink_well.png) /// ![The highlight is a rectangle the size of the box.](https://flutter.github.io/assets-for-api-docs/material/ink_well.png)
/// ///
/// Must have an ancestor [Material] widget in which to cause ink reactions. /// The [InkResponse] widbget must have a [Material] widget as an ancestor. The
/// [Material] widget is where the ink reactions are actually painted. This
/// matches the material design premise wherein the [Material] is what is
/// actually reacting to touches by spreading ink.
/// ///
/// If a Widget uses this class directly, it should include the following line /// If a Widget uses this class directly, it should include the following line
/// at the top of its build function to call [debugCheckHasMaterial]: /// at the top of its build function to call [debugCheckHasMaterial]:
@ -285,13 +288,16 @@ class _InkResponseState<T extends InkResponse> extends State<T> {
/// ///
/// For a variant of this widget that does not clip splashes, see [InkResponse]. /// For a variant of this widget that does not clip splashes, see [InkResponse].
/// ///
/// Must have an ancestor [Material] widget in which to cause ink reactions.
///
/// The following diagram shows how an [InkWell] looks when tapped, when using /// The following diagram shows how an [InkWell] looks when tapped, when using
/// default values. /// default values.
/// ///
/// ![The highlight is a rectangle the size of the box.](https://flutter.github.io/assets-for-api-docs/material/ink_well.png) /// ![The highlight is a rectangle the size of the box.](https://flutter.github.io/assets-for-api-docs/material/ink_well.png)
/// ///
/// The [InkResponse] widbget must have a [Material] widget as an ancestor. The
/// [Material] widget is where the ink reactions are actually painted. This
/// matches the material design premise wherein the [Material] is what is
/// actually reacting to touches by spreading ink.
///
/// If a Widget uses this class directly, it should include the following line /// If a Widget uses this class directly, it should include the following line
/// at the top of its build function to call [debugCheckHasMaterial]: /// at the top of its build function to call [debugCheckHasMaterial]:
/// ///

View File

@ -2282,7 +2282,7 @@ class Row extends Flex {
/// new Text('Craft beautiful UIs'), /// new Text('Craft beautiful UIs'),
/// new Expanded( /// new Expanded(
/// child: new FittedBox( /// child: new FittedBox(
/// fit: BoxFit.contain, /// fit: BoxFit.contain, // otherwise the logo will be tiny
/// child: const FlutterLogo(), /// child: const FlutterLogo(),
/// ), /// ),
/// ), /// ),