Commit 991b50e4 authored by Ian Hickson's avatar Ian Hickson

Merge pull request #2776 from Hixie/md-fixes

Miscellaneous dartdoc markdown fixes
parents 121c7a03 561a94cc
......@@ -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.
......
......@@ -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: <https://www.google.com/design/spec/components/buttons-floating-action-button.html>
class FloatingActionButton extends StatefulWidget {
const FloatingActionButton({
Key key,
......
......@@ -24,8 +24,9 @@ import 'theme.dart';
/// handler.
///
/// See also:
///
/// * [FlatButton] class
/// * https://www.google.com/design/spec/components/buttons.html
/// * <https://www.google.com/design/spec/components/buttons.html>
class RaisedButton extends MaterialButton {
RaisedButton({
Key key,
......
......@@ -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: <https://www.google.com/design/spec/components/snackbars-toasts.html>
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
/// * <https://www.google.com/design/spec/components/snackbars-toasts.html>
class SnackBar extends StatelessWidget {
SnackBar({
Key key,
......
......@@ -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,
......
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