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 @@ ...@@ -9,6 +9,7 @@
/// images, interpolating between shadows, painting borders around boxes, etc. /// images, interpolating between shadows, painting borders around boxes, etc.
/// ///
/// In particular: /// In particular:
///
/// * Use the [TextPainter] class for painting text. /// * Use the [TextPainter] class for painting text.
/// * Use [Decoration] (and more concretely [BoxDecoration]) for /// * Use [Decoration] (and more concretely [BoxDecoration]) for
/// painting boxes. /// painting boxes.
......
...@@ -31,8 +31,7 @@ const Interval _kChildSegueInterval = const Interval(0.65, 1.0); ...@@ -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 /// If the [onPressed] callback is not specified or null, then the button will
/// be disabled, will not react to touch. /// be disabled, will not react to touch.
/// ///
/// See also: /// See also: <https://www.google.com/design/spec/components/buttons-floating-action-button.html>
/// * https://www.google.com/design/spec/components/buttons-floating-action-button.html
class FloatingActionButton extends StatefulWidget { class FloatingActionButton extends StatefulWidget {
const FloatingActionButton({ const FloatingActionButton({
Key key, Key key,
......
...@@ -24,8 +24,9 @@ import 'theme.dart'; ...@@ -24,8 +24,9 @@ import 'theme.dart';
/// handler. /// handler.
/// ///
/// See also: /// See also:
///
/// * [FlatButton] class /// * [FlatButton] class
/// * https://www.google.com/design/spec/components/buttons.html /// * <https://www.google.com/design/spec/components/buttons.html>
class RaisedButton extends MaterialButton { class RaisedButton extends MaterialButton {
RaisedButton({ RaisedButton({
Key key, Key key,
......
...@@ -35,8 +35,7 @@ const Curve _snackBarFadeCurve = const Interval(0.72, 1.0, curve: Curves.fastOut ...@@ -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 /// Snack bar actions are always enabled. If you want to disable a snack bar
/// action, simply don't include it in the snack bar. /// action, simply don't include it in the snack bar.
/// ///
/// See also: /// See also: <https://www.google.com/design/spec/components/snackbars-toasts.html>
/// * https://www.google.com/design/spec/components/snackbars-toasts.html
class SnackBarAction extends StatelessWidget { class SnackBarAction extends StatelessWidget {
SnackBarAction({Key key, this.label, this.onPressed }) : super(key: key) { SnackBarAction({Key key, this.label, this.onPressed }) : super(key: key) {
assert(label != null); assert(label != null);
...@@ -68,9 +67,10 @@ class SnackBarAction extends StatelessWidget { ...@@ -68,9 +67,10 @@ class SnackBarAction extends StatelessWidget {
/// Displayed with the Scaffold.of().showSnackBar() API. /// Displayed with the Scaffold.of().showSnackBar() API.
/// ///
/// See also: /// See also:
///
/// * [Scaffold.of] and [ScaffoldState.showSnackBar] /// * [Scaffold.of] and [ScaffoldState.showSnackBar]
/// * [SnackBarAction] /// * [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 { class SnackBar extends StatelessWidget {
SnackBar({ SnackBar({
Key key, Key key,
......
...@@ -2,16 +2,16 @@ part of flutter_sprites; ...@@ -2,16 +2,16 @@ part of flutter_sprites;
/// Options for setting up a [SpriteBox]. /// Options for setting up a [SpriteBox].
/// ///
/// * [nativePoints], use the same points as the parent [Widget]. /// * [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 /// * [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. /// 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. /// * [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 /// * [scaleToFit]: similar to the letterbox option, but instead of trimming areas the sprite system will be scaled
/// down to fit the box. /// 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 /// * [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. /// 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 /// * [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. /// the width of the root node to fit the box.
enum SpriteBoxTransformMode { enum SpriteBoxTransformMode {
nativePoints, nativePoints,
letterbox, 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