diff --git a/packages/flutter/lib/painting.dart b/packages/flutter/lib/painting.dart index 95bbdf120eb..d09bd5c0485 100644 --- a/packages/flutter/lib/painting.dart +++ b/packages/flutter/lib/painting.dart @@ -9,6 +9,7 @@ /// images, interpolating between shadows, painting borders around boxes, etc. /// /// In particular: +/// /// * Use the [TextPainter] class for painting text. /// * Use [Decoration] (and more concretely [BoxDecoration]) for /// painting boxes. diff --git a/packages/flutter/lib/src/material/floating_action_button.dart b/packages/flutter/lib/src/material/floating_action_button.dart index 00be2e0a0a6..0a73a48373f 100644 --- a/packages/flutter/lib/src/material/floating_action_button.dart +++ b/packages/flutter/lib/src/material/floating_action_button.dart @@ -31,8 +31,7 @@ const Interval _kChildSegueInterval = const Interval(0.65, 1.0); /// If the [onPressed] callback is not specified or null, then the button will /// be disabled, will not react to touch. /// -/// See also: -/// * https://www.google.com/design/spec/components/buttons-floating-action-button.html +/// See also: class FloatingActionButton extends StatefulWidget { const FloatingActionButton({ Key key, diff --git a/packages/flutter/lib/src/material/raised_button.dart b/packages/flutter/lib/src/material/raised_button.dart index 424f88de170..4b0b37e3945 100644 --- a/packages/flutter/lib/src/material/raised_button.dart +++ b/packages/flutter/lib/src/material/raised_button.dart @@ -24,8 +24,9 @@ import 'theme.dart'; /// handler. /// /// See also: +/// /// * [FlatButton] class -/// * https://www.google.com/design/spec/components/buttons.html +/// * class RaisedButton extends MaterialButton { RaisedButton({ Key key, diff --git a/packages/flutter/lib/src/material/snack_bar.dart b/packages/flutter/lib/src/material/snack_bar.dart index 369776894f9..b59c76b19ae 100644 --- a/packages/flutter/lib/src/material/snack_bar.dart +++ b/packages/flutter/lib/src/material/snack_bar.dart @@ -35,8 +35,7 @@ const Curve _snackBarFadeCurve = const Interval(0.72, 1.0, curve: Curves.fastOut /// Snack bar actions are always enabled. If you want to disable a snack bar /// action, simply don't include it in the snack bar. /// -/// See also: -/// * https://www.google.com/design/spec/components/snackbars-toasts.html +/// See also: class SnackBarAction extends StatelessWidget { SnackBarAction({Key key, this.label, this.onPressed }) : super(key: key) { assert(label != null); @@ -68,9 +67,10 @@ class SnackBarAction extends StatelessWidget { /// Displayed with the Scaffold.of().showSnackBar() API. /// /// See also: +/// /// * [Scaffold.of] and [ScaffoldState.showSnackBar] /// * [SnackBarAction] -/// * https://www.google.com/design/spec/components/snackbars-toasts.html +/// * class SnackBar extends StatelessWidget { SnackBar({ Key key, diff --git a/packages/flutter_sprites/lib/src/sprite_box.dart b/packages/flutter_sprites/lib/src/sprite_box.dart index 51c126e5e18..2c132bdfaec 100644 --- a/packages/flutter_sprites/lib/src/sprite_box.dart +++ b/packages/flutter_sprites/lib/src/sprite_box.dart @@ -2,16 +2,16 @@ part of flutter_sprites; /// Options for setting up a [SpriteBox]. /// -/// * [nativePoints], use the same points as the parent [Widget]. -/// * [letterbox], use the size of the root node for the coordinate system, constrain the aspect ratio and trim off -/// areas that end up outside the screen. -/// * [stretch], use the size of the root node for the coordinate system, scale it to fit the size of the box. -/// * [scaleToFit], similar to the letterbox option, but instead of trimming areas the sprite system will be scaled -/// down to fit the box. -/// * [fixedWidth], uses the width of the root node to set the size of the coordinate system, this option will change -/// the height of the root node to fit the box. -/// * [fixedHeight], uses the height of the root node to set the size of the coordinate system, this option will change -/// the width of the root node to fit the box. +/// * [nativePoints]: use the same points as the parent [Widget]. +/// * [letterbox]: use the size of the root node for the coordinate system, and constrain the aspect ratio and trim off +/// areas that end up outside the screen. +/// * [stretch]: use the size of the root node for the coordinate system, and scale it to fit the size of the box. +/// * [scaleToFit]: similar to the letterbox option, but instead of trimming areas the sprite system will be scaled +/// down to fit the box. +/// * [fixedWidth]: use the width of the root node to set the size of the coordinate system, and change +/// the height of the root node to fit the box. +/// * [fixedHeight]: use the height of the root node to set the size of the coordinate system, and change +/// the width of the root node to fit the box. enum SpriteBoxTransformMode { nativePoints, letterbox,