diff --git a/packages/flutter/lib/src/material/floating_action_button.dart b/packages/flutter/lib/src/material/floating_action_button.dart index 2b0a8ef1f4..d47ee9b405 100644 --- a/packages/flutter/lib/src/material/floating_action_button.dart +++ b/packages/flutter/lib/src/material/floating_action_button.dart @@ -13,6 +13,7 @@ import 'theme.dart'; // TODO(eseidel): This needs to change based on device size? // http://www.google.com/design/spec/layout/metrics-keylines.html#metrics-keylines-keylines-spacing const double _kSize = 56.0; +const double _kSizeMini = 40.0; class FloatingActionButton extends StatefulComponent { const FloatingActionButton({ @@ -21,7 +22,8 @@ class FloatingActionButton extends StatefulComponent { this.backgroundColor, this.elevation: 6, this.highlightElevation: 12, - this.onPressed + this.onPressed, + this.mini: false }) : super(key: key); final Widget child; @@ -29,6 +31,7 @@ class FloatingActionButton extends StatefulComponent { final VoidCallback onPressed; final int elevation; final int highlightElevation; + final bool mini; _FloatingActionButtonState createState() => new _FloatingActionButtonState(); } @@ -56,8 +59,8 @@ class _FloatingActionButtonState extends State { type: MaterialType.circle, elevation: _highlight ? config.highlightElevation : config.elevation, child: new Container( - width: _kSize, - height: _kSize, + width: config.mini ? _kSizeMini : _kSize, + height: config.mini ? _kSizeMini : _kSize, child: new InkWell( onTap: config.onPressed, onHighlightChanged: _handleHighlightChanged, diff --git a/packages/flutter/lib/src/widgets/basic.dart b/packages/flutter/lib/src/widgets/basic.dart index 1ee2ef92d5..d3ca5d8cf4 100644 --- a/packages/flutter/lib/src/widgets/basic.dart +++ b/packages/flutter/lib/src/widgets/basic.dart @@ -1252,7 +1252,7 @@ class RawText extends LeafRenderObjectWidget { /// A convience widget for paragraphs of text with heterogeneous style. /// -/// The elements paramter is a recusrive list of lists that matches the +/// The elements parameter is a recursive list of lists that matches the /// following grammar: /// /// `elements ::= "string" | [ *]`` diff --git a/packages/flutter/lib/src/widgets/statistics_overlay.dart b/packages/flutter/lib/src/widgets/statistics_overlay.dart index 587f81ab0a..72e80ae4b2 100644 --- a/packages/flutter/lib/src/widgets/statistics_overlay.dart +++ b/packages/flutter/lib/src/widgets/statistics_overlay.dart @@ -60,7 +60,7 @@ class StatisticsOverlay extends LeafRenderObjectWidget { /// The rasterizer threshold is an integer specifying the number of frame /// intervals that the rasterizer must miss before it decides that the frame - /// is suitable for capturing an SkPicture trace from for further analysis. + /// is suitable for capturing an SkPicture trace for further analysis. /// /// For example, if you want a trace of all pictures that could not be /// renderered by the rasterizer within the frame boundary (and hence caused