mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Miscellaneous dartdoc markdown fixes
This commit is contained in:
parent
121c7a0368
commit
561a94ccfe
@ -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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user