Fix spelling errors in all the dartdocs. (#13061)

I got tired of drive-by spelling fixes, so I figured I'd just take care of them all at once.

This only corrects errors in the dartdocs, not regular comments, and I skipped any sample code in the dartdocs. It doesn't touch any identifiers in the dartdocs either. No code changes, just comments.
This commit is contained in:
Greg Spencer 2017-11-17 10:05:21 -08:00 committed by GitHub
parent d5d2cdfeef
commit 0259be90b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
103 changed files with 191 additions and 191 deletions

View File

@ -44,7 +44,7 @@ abstract class DeviceDiscovery {
/// ///
/// Returns the same device when called repeatedly (unlike /// Returns the same device when called repeatedly (unlike
/// [chooseWorkingDevice]). This is useful when you need to perform multiple /// [chooseWorkingDevice]). This is useful when you need to perform multiple
/// perations on one. /// operations on one.
Future<Device> get workingDevice; Future<Device> get workingDevice;
/// Lists all available devices' IDs. /// Lists all available devices' IDs.

View File

@ -13,7 +13,7 @@ import 'package:flutter_devicelab/framework/framework.dart';
import 'package:flutter_devicelab/framework/ios.dart'; import 'package:flutter_devicelab/framework/ios.dart';
import 'package:flutter_devicelab/framework/utils.dart'; import 'package:flutter_devicelab/framework/utils.dart';
/// The maximum amount of time a single microbenchmarks is allowed to take. /// The maximum amount of time a single microbenchmark is allowed to take.
const Duration _kBenchmarkTimeout = const Duration(minutes: 6); const Duration _kBenchmarkTimeout = const Duration(minutes: 6);
/// Creates a device lab task that runs benchmarks in /// Creates a device lab task that runs benchmarks in

View File

@ -246,7 +246,7 @@ class CalcExpression {
/// Append a minus sign to the current expression and return a new expression /// Append a minus sign to the current expression and return a new expression
/// representing the result. Returns null to indicate that it is not legal /// representing the result. Returns null to indicate that it is not legal
/// to append a minus sign in the current state. Depending on the current /// to append a minus sign in the current state. Depending on the current
/// state the minus sign will be interpretted as either a leading negative /// state the minus sign will be interpreted as either a leading negative
/// sign or a subtraction operation. /// sign or a subtraction operation.
CalcExpression appendMinus() { CalcExpression appendMinus() {
switch (state) { switch (state) {

View File

@ -48,7 +48,7 @@ class RenderDots extends RenderBox {
@override @override
bool get sizedByParent => true; bool get sizedByParent => true;
/// By selecting the biggest value permitted by the incomming constraints /// By selecting the biggest value permitted by the incoming constraints
/// during layout, this function makes this render object as large as /// during layout, this function makes this render object as large as
/// possible (i.e., fills the entire screen). /// possible (i.e., fills the entire screen).
@override @override

View File

@ -85,7 +85,7 @@ const Tolerance _kFlingTolerance = const Tolerance(
/// } /// }
/// ``` /// ```
/// ///
/// ...which asynchnorously runs one animation, then runs another, then changes /// ...which asynchronously runs one animation, then runs another, then changes
/// the state of the widget, without having to verify [State.mounted] is still /// the state of the widget, without having to verify [State.mounted] is still
/// true at each step, and without having to chain futures together explicitly. /// true at each step, and without having to chain futures together explicitly.
/// (This assumes that the controllers are created in [State.initState] and /// (This assumes that the controllers are created in [State.initState] and

View File

@ -156,7 +156,7 @@ abstract class AnimationWithParentMixin<T> {
/// ///
/// A proxy animation is useful because the parent animation can be mutated. For /// A proxy animation is useful because the parent animation can be mutated. For
/// example, one object can create a proxy animation, hand the proxy to another /// example, one object can create a proxy animation, hand the proxy to another
/// object, and then later change the animation from which the proxy receieves /// object, and then later change the animation from which the proxy receives
/// its value. /// its value.
class ProxyAnimation extends Animation<double> class ProxyAnimation extends Animation<double>
with AnimationLazyListenerMixin, AnimationLocalListenersMixin, AnimationLocalStatusListenersMixin { with AnimationLazyListenerMixin, AnimationLocalListenersMixin, AnimationLocalStatusListenersMixin {

View File

@ -247,7 +247,7 @@ class Cubic extends Curve {
/// A curve that is the reversed inversion of its given curve. /// A curve that is the reversed inversion of its given curve.
/// ///
/// This curve evalutes the given curve in reverse (i.e., from 1.0 to 0.0 as t /// This curve evaluates the given curve in reverse (i.e., from 1.0 to 0.0 as t
/// increases from 0.0 to 1.0) and returns the inverse of the given curve's value /// increases from 0.0 to 1.0) and returns the inverse of the given curve's value
/// (i.e., 1.0 minus the given curve's value). /// (i.e., 1.0 minus the given curve's value).
/// ///
@ -534,17 +534,17 @@ class Curves {
/// ![](https://flutter.github.io/assets-for-api-docs/animation/curve_bounce_in_out.png) /// ![](https://flutter.github.io/assets-for-api-docs/animation/curve_bounce_in_out.png)
static const Curve bounceInOut = const _BounceInOutCurve._(); static const Curve bounceInOut = const _BounceInOutCurve._();
/// An oscillating curve that grows in magnitude while overshootings its bounds. /// An oscillating curve that grows in magnitude while overshooting its bounds.
/// ///
/// ![](https://flutter.github.io/assets-for-api-docs/animation/curve_elastic_in.png) /// ![](https://flutter.github.io/assets-for-api-docs/animation/curve_elastic_in.png)
static const ElasticInCurve elasticIn = const ElasticInCurve(); static const ElasticInCurve elasticIn = const ElasticInCurve();
/// An oscillating curve that shrinks in magnitude while overshootings its bounds. /// An oscillating curve that shrinks in magnitude while overshooting its bounds.
/// ///
/// ![](https://flutter.github.io/assets-for-api-docs/animation/curve_elastic_out.png) /// ![](https://flutter.github.io/assets-for-api-docs/animation/curve_elastic_out.png)
static const ElasticOutCurve elasticOut = const ElasticOutCurve(); static const ElasticOutCurve elasticOut = const ElasticOutCurve();
/// An oscillating curve that grows and then shrinks in magnitude while overshootings its bounds. /// An oscillating curve that grows and then shrinks in magnitude while overshooting its bounds.
/// ///
/// ![](https://flutter.github.io/assets-for-api-docs/animation/curve_elastic_in_out.png) /// ![](https://flutter.github.io/assets-for-api-docs/animation/curve_elastic_in_out.png)
static const ElasticInOutCurve elasticInOut = const ElasticInOutCurve(); static const ElasticInOutCurve elasticInOut = const ElasticInOutCurve();

View File

@ -187,7 +187,7 @@ class CupertinoTabBar extends StatelessWidget implements PreferredSizeWidget {
} }
/// Create a clone of the current [CupertinoTabBar] but with provided /// Create a clone of the current [CupertinoTabBar] but with provided
/// parameters overriden. /// parameters overridden.
CupertinoTabBar copyWith({ CupertinoTabBar copyWith({
Key key, Key key,
List<BottomNavigationBarItem> items, List<BottomNavigationBarItem> items,

View File

@ -200,7 +200,7 @@ class CupertinoPageRoute<T> extends PageRoute<T> {
/// Begin dismissing this route from a horizontal swipe, if appropriate. /// Begin dismissing this route from a horizontal swipe, if appropriate.
/// ///
/// Swiping will be disabled if the page is a fullscreen dialog or if /// Swiping will be disabled if the page is a fullscreen dialog or if
/// dismissals can be overriden because a [WillPopCallback] was /// dismissals can be overridden because a [WillPopCallback] was
/// defined for the route. /// defined for the route.
/// ///
/// When this method decides a pop gesture is appropriate, it returns a /// When this method decides a pop gesture is appropriate, it returns a

View File

@ -35,7 +35,7 @@ abstract class Listenable {
/// A class that can be extended or mixed in that provides a change notification /// A class that can be extended or mixed in that provides a change notification
/// API using [VoidCallback] for notifications. /// API using [VoidCallback] for notifications.
/// ///
/// [ChangeNotifier] is optimised for small numbers (one or two) of listeners. /// [ChangeNotifier] is optimized for small numbers (one or two) of listeners.
/// It is O(N) for adding and removing listeners and O(N²) for dispatching /// It is O(N) for adding and removing listeners and O(N²) for dispatching
/// notifications (where N is the number of listeners). /// notifications (where N is the number of listeners).
/// ///

View File

@ -363,7 +363,7 @@ final TextTreeConfiguration sparseTextConfiguration = new TextTreeConfiguration(
/// ///
/// See also: /// See also:
/// ///
/// * [DiagnosticsTreeStyle.offstage], uses this style for ascii art display. /// * [DiagnosticsTreeStyle.offstage], uses this style for ASCII art display.
final TextTreeConfiguration dashedTextConfiguration = new TextTreeConfiguration( final TextTreeConfiguration dashedTextConfiguration = new TextTreeConfiguration(
prefixLineOne: '╎╌', prefixLineOne: '╎╌',
prefixLastChildLineOne: '└╌', prefixLastChildLineOne: '└╌',

View File

@ -60,7 +60,7 @@ class _GestureArena {
bool hasPendingSweep = false; bool hasPendingSweep = false;
/// If a gesture attempts to win while the arena is still open, it becomes the /// If a gesture attempts to win while the arena is still open, it becomes the
/// "eager winnner". We look for an eager winner when closing the arena to new /// "eager winner". We look for an eager winner when closing the arena to new
/// participants, and if there is one, we resolve the arena in its favor at /// participants, and if there is one, we resolve the arena in its favor at
/// that time. /// that time.
GestureArenaMember eagerWinner; GestureArenaMember eagerWinner;

View File

@ -35,7 +35,7 @@ const int kMiddleMouseButton = 0x04;
/// The bit of [PointerEvent.buttons] that corresponds to the secondary stylus button. /// The bit of [PointerEvent.buttons] that corresponds to the secondary stylus button.
/// ///
/// The secondary stylus button is typically on the end of the stylus fartherest /// The secondary stylus button is typically on the end of the stylus farthest
/// from the tip but can be reconfigured to be a different physical button. /// from the tip but can be reconfigured to be a different physical button.
const int kSecondaryStylusButton = 0x04; const int kSecondaryStylusButton = 0x04;
@ -74,7 +74,7 @@ int nthStylusButton(int number) => (kPrimaryStylusButton << (number - 1)) & kMax
/// logical pixels. Logical pixels approximate a grid with about 38 pixels per /// logical pixels. Logical pixels approximate a grid with about 38 pixels per
/// centimeter, or 96 pixels per inch. /// centimeter, or 96 pixels per inch.
/// ///
/// This allows gestures to be recognised independent of the precise hardware /// This allows gestures to be recognized independent of the precise hardware
/// characteristics of the device. In particular, features such as touch slop /// characteristics of the device. In particular, features such as touch slop
/// (see [kTouchSlop]) can be defined in terms of roughly physical lengths so /// (see [kTouchSlop]) can be defined in terms of roughly physical lengths so
/// that the user can shift their finger by the same distance on a high-density /// that the user can shift their finger by the same distance on a high-density
@ -241,7 +241,7 @@ abstract class PointerEvent {
/// in pointer behaviors. /// in pointer behaviors.
/// ///
/// For instance, on end events, Android always drops any location changes /// For instance, on end events, Android always drops any location changes
/// that happened between its reporting intervals when emiting the end events. /// that happened between its reporting intervals when emitting the end events.
/// ///
/// On iOS, minor incorrect location changes from the previous move events /// On iOS, minor incorrect location changes from the previous move events
/// can be reported on end events. We synthesize a [PointerEvent] to cover /// can be reported on end events. We synthesize a [PointerEvent] to cover

View File

@ -19,7 +19,7 @@ class LongPressGestureRecognizer extends PrimaryPointerGestureRecognizer {
/// Consider assigning the [onLongPress] callback after creating this object. /// Consider assigning the [onLongPress] callback after creating this object.
LongPressGestureRecognizer({ Object debugOwner }) : super(deadline: kLongPressTimeout, debugOwner: debugOwner); LongPressGestureRecognizer({ Object debugOwner }) : super(deadline: kLongPressTimeout, debugOwner: debugOwner);
/// Called when a long-press is recongized. /// Called when a long-press is recognized.
GestureLongPressCallback onLongPress; GestureLongPressCallback onLongPress;
@override @override

View File

@ -503,7 +503,7 @@ class _DelayedPointerState extends MultiDragPointerState {
/// Recognizes movement both horizontally and vertically on a per-pointer basis /// Recognizes movement both horizontally and vertically on a per-pointer basis
/// after a delay. /// after a delay.
/// ///
/// In constrast to [ImmediateMultiDragGestureRecognizer], /// In contrast to [ImmediateMultiDragGestureRecognizer],
/// [DelayedMultiDragGestureRecognizer] waits for a [delay] before recognizing /// [DelayedMultiDragGestureRecognizer] waits for a [delay] before recognizing
/// the drag. If the pointer moves more than [kTouchSlop] before the delay /// the drag. If the pointer moves more than [kTouchSlop] before the delay
/// expires, the gesture is not recognized. /// expires, the gesture is not recognized.

View File

@ -102,7 +102,7 @@ bool _isFlingGesture(Velocity velocity) {
/// Recognizes a scale gesture. /// Recognizes a scale gesture.
/// ///
/// [ScaleGestureRecognizer] tracks the pointers in contact with the screen and /// [ScaleGestureRecognizer] tracks the pointers in contact with the screen and
/// calculates their focal point and indiciated scale. When a focal pointer is /// calculates their focal point and indicated scale. When a focal pointer is
/// established, the recognizer calls [onStart]. As the focal point and scale /// established, the recognizer calls [onStart]. As the focal point and scale
/// change, the recognizer calls [onUpdate]. When the pointers are no longer in /// change, the recognizer calls [onUpdate]. When the pointers are no longer in
/// contact with the screen, the recognizer calls [onEnd]. /// contact with the screen, the recognizer calls [onEnd].

View File

@ -224,7 +224,7 @@ T _maxBy<T>(Iterable<T> input, _KeyFunc<T> keyFunc) {
/// * [MaterialRectCenterArcTween], which interpolates a rect along a circular /// * [MaterialRectCenterArcTween], which interpolates a rect along a circular
/// arc between the begin and end [Rect]'s centers. /// arc between the begin and end [Rect]'s centers.
/// * [Tween], for a discussion on how to use interpolation objects. /// * [Tween], for a discussion on how to use interpolation objects.
/// * [MaterialPointArcTween], the analogue for [Offset] interporation. /// * [MaterialPointArcTween], the analogue for [Offset] interpolation.
/// * [RectTween], which does a linear rectangle interpolation. /// * [RectTween], which does a linear rectangle interpolation.
/// * [Hero.createRectTween], which can be used to specify the tween that defines /// * [Hero.createRectTween], which can be used to specify the tween that defines
/// a hero's path. /// a hero's path.
@ -340,7 +340,7 @@ class MaterialRectArcTween extends RectTween {
/// * [MaterialRectArcTween], A [Tween] that interpolates a [Rect] by having /// * [MaterialRectArcTween], A [Tween] that interpolates a [Rect] by having
/// its opposite corners follow circular arcs. /// its opposite corners follow circular arcs.
/// * [Tween], for a discussion on how to use interpolation objects. /// * [Tween], for a discussion on how to use interpolation objects.
/// * [MaterialPointArcTween], the analogue for [Offset] interporation. /// * [MaterialPointArcTween], the analogue for [Offset] interpolation.
/// * [RectTween], which does a linear rectangle interpolation. /// * [RectTween], which does a linear rectangle interpolation.
/// * [Hero.createRectTween], which can be used to specify the tween that defines /// * [Hero.createRectTween], which can be used to specify the tween that defines
/// a hero's path. /// a hero's path.

View File

@ -26,7 +26,7 @@ class BackButtonIcon extends StatelessWidget {
/// the current platform (as obtained from the [Theme]). /// the current platform (as obtained from the [Theme]).
const BackButtonIcon({ Key key }) : super(key: key); const BackButtonIcon({ Key key }) : super(key: key);
/// Returns tha appropriate "back" icon for the given `platform`. /// Returns the appropriate "back" icon for the given `platform`.
static IconData _getIconData(TargetPlatform platform) { static IconData _getIconData(TargetPlatform platform) {
switch (platform) { switch (platform) {
case TargetPlatform.android: case TargetPlatform.android:

View File

@ -48,7 +48,7 @@ class ExpandIcon extends StatefulWidget {
/// If this is set to null, the button will be disabled. /// If this is set to null, the button will be disabled.
final ValueChanged<bool> onPressed; final ValueChanged<bool> onPressed;
/// The padding around the icon. The entire padded icon will reactb to input /// The padding around the icon. The entire padded icon will react to input
/// gestures. /// gestures.
/// ///
/// This property must not be null. It defaults to 8.0 padding on all sides. /// This property must not be null. It defaults to 8.0 padding on all sides.

View File

@ -113,7 +113,7 @@ class IconButton extends StatelessWidget {
/// The icon to display inside the button. /// The icon to display inside the button.
/// ///
/// The [Icon.size] and [Icon.color] of the icon is configured automatically /// The [Icon.size] and [Icon.color] of the icon is configured automatically
/// based on the [iconSize] nad [color] properties of _this_ widget using an /// based on the [iconSize] and [color] properties of _this_ widget using an
/// [IconTheme] and therefore should not be explicitly given in the icon /// [IconTheme] and therefore should not be explicitly given in the icon
/// widget. /// widget.
/// ///
@ -149,7 +149,7 @@ class IconButton extends StatelessWidget {
final Color splashColor; final Color splashColor;
/// The secondary color of the button when the button is in the down (pressed) /// The secondary color of the button when the button is in the down (pressed)
/// state. The higlight color is represented as a solid color that is overlaid over the /// state. The highlight color is represented as a solid color that is overlaid over the
/// button color (if any). If the highlight color has transparency, the button color /// button color (if any). If the highlight color has transparency, the button color
/// will show through. The highlight fades in quickly as the button is held down. /// will show through. The highlight fades in quickly as the button is held down.
/// ///

View File

@ -352,7 +352,7 @@ class InputDecoration {
/// * [Decoration] and [DecoratedBox], for drawing arbitrary decorations /// * [Decoration] and [DecoratedBox], for drawing arbitrary decorations
/// around other widgets. /// around other widgets.
class InputDecorator extends StatelessWidget { class InputDecorator extends StatelessWidget {
/// Creates a widget that displayes labels and other visual elements similar /// Creates a widget that displays labels and other visual elements similar
/// to a [TextField]. /// to a [TextField].
/// ///
/// The [isFocused] and [isEmpty] arguments must not be null. /// The [isFocused] and [isEmpty] arguments must not be null.

View File

@ -432,7 +432,7 @@ abstract class InkFeature {
/// Override this method to paint the ink feature. /// Override this method to paint the ink feature.
/// ///
/// The transform argument gives the coordinate conversion from the coordinate /// The transform argument gives the coordinate conversion from the coordinate
/// system of the canvas to the coodinate system of the [referenceBox]. /// system of the canvas to the coordinate system of the [referenceBox].
@protected @protected
void paintFeature(Canvas canvas, Matrix4 transform); void paintFeature(Canvas canvas, Matrix4 transform);

View File

@ -19,7 +19,7 @@ import 'typography.dart';
/// * [GlobalMaterialLocalizations], which provides material localizations for /// * [GlobalMaterialLocalizations], which provides material localizations for
/// many languages. /// many languages.
abstract class MaterialLocalizations { abstract class MaterialLocalizations {
/// The tooltip for the leading [AppBar] menu (aka 'hamburger') button. /// The tooltip for the leading [AppBar] menu (a.k.a. 'hamburger') button.
String get openAppDrawerTooltip; String get openAppDrawerTooltip;
/// The [BackButton]'s tooltip. /// The [BackButton]'s tooltip.

View File

@ -23,7 +23,7 @@ import 'theme.dart';
/// A material design data table that shows data using multiple pages. /// A material design data table that shows data using multiple pages.
/// ///
/// A paginated data table shows [rowsPerPage] rows of data per page and /// A paginated data table shows [rowsPerPage] rows of data per page and
/// provies controls for showing other pages. /// provides controls for showing other pages.
/// ///
/// Data is read lazily from from a [DataTableSource]. The widget is presented /// Data is read lazily from from a [DataTableSource]. The widget is presented
/// as a [Card]. /// as a [Card].

View File

@ -28,7 +28,7 @@ abstract class ProgressIndicator extends StatefulWidget {
/// Creates a progress indicator. /// Creates a progress indicator.
/// ///
/// The [value] argument can be either null (corresponding to an indeterminate /// The [value] argument can be either null (corresponding to an indeterminate
/// progress indcator) or non-null (corresponding to a determinate progress /// progress indicator) or non-null (corresponding to a determinate progress
/// indicator). See [value] for details. /// indicator). See [value] for details.
const ProgressIndicator({ const ProgressIndicator({
Key key, Key key,
@ -156,7 +156,7 @@ class LinearProgressIndicator extends ProgressIndicator {
/// Creates a linear progress indicator. /// Creates a linear progress indicator.
/// ///
/// The [value] argument can be either null (corresponding to an indeterminate /// The [value] argument can be either null (corresponding to an indeterminate
/// progress indcator) or non-null (corresponding to a determinate progress /// progress indicator) or non-null (corresponding to a determinate progress
/// indicator). See [value] for details. /// indicator). See [value] for details.
const LinearProgressIndicator({ const LinearProgressIndicator({
Key key, Key key,
@ -315,7 +315,7 @@ class CircularProgressIndicator extends ProgressIndicator {
/// Creates a circular progress indicator. /// Creates a circular progress indicator.
/// ///
/// The [value] argument can be either null (corresponding to an indeterminate /// The [value] argument can be either null (corresponding to an indeterminate
/// progress indcator) or non-null (corresponding to a determinate progress /// progress indicator) or non-null (corresponding to a determinate progress
/// indicator). See [value] for details. /// indicator). See [value] for details.
const CircularProgressIndicator({ const CircularProgressIndicator({
Key key, Key key,

View File

@ -73,7 +73,7 @@ enum _RefreshIndicatorMode {
/// See also: /// See also:
/// ///
/// * <https://material.google.com/patterns/swipe-to-refresh.html> /// * <https://material.google.com/patterns/swipe-to-refresh.html>
/// * [RefreshIndicatorState], can be used to programatically show the refresh indicator. /// * [RefreshIndicatorState], can be used to programmatically show the refresh indicator.
/// * [RefreshProgressIndicator]. /// * [RefreshProgressIndicator].
class RefreshIndicator extends StatefulWidget { class RefreshIndicator extends StatefulWidget {
/// Creates a refresh indicator. /// Creates a refresh indicator.

View File

@ -704,12 +704,12 @@ class ScaffoldState extends State<Scaffold> with TickerProviderStateMixin {
/// of the app. Modal bottom sheets can be created and displayed with the /// of the app. Modal bottom sheets can be created and displayed with the
/// [showModalBottomSheet] function. /// [showModalBottomSheet] function.
/// ///
/// Returns a contoller that can be used to close and otherwise manipulate the /// Returns a controller that can be used to close and otherwise manipulate the
/// button sheet. /// button sheet.
/// ///
/// See also: /// See also:
/// ///
/// * [BottomSheet], which is the widget typicaly returned by the `builder`. /// * [BottomSheet], which is the widget typically returned by the `builder`.
/// * [showModalBottomSheet], which can be used to display a modal bottom /// * [showModalBottomSheet], which can be used to display a modal bottom
/// sheet. /// sheet.
/// * [Scaffold.of], for information about how to obtain the [ScaffoldState]. /// * [Scaffold.of], for information about how to obtain the [ScaffoldState].

View File

@ -104,7 +104,7 @@ class Step {
/// Below the content, every step has a 'continue' and 'cancel' button. /// Below the content, every step has a 'continue' and 'cancel' button.
final Widget content; final Widget content;
/// The state of the step which determines the styling of its componenents /// The state of the step which determines the styling of its components
/// and whether steps are interactive. /// and whether steps are interactive.
final StepState state; final StepState state;

View File

@ -410,7 +410,7 @@ class _TabBarScrollController extends ScrollController {
/// A material design widget that displays a horizontal row of tabs. /// A material design widget that displays a horizontal row of tabs.
/// ///
/// Typically created as the [AppBar.bottom] part of an [AppBar] and in /// Typically created as the [AppBar.bottom] part of an [AppBar] and in
/// conjuction with a [TabBarView]. /// conjunction with a [TabBarView].
/// ///
/// If a [TabController] is not provided, then there must be a /// If a [TabController] is not provided, then there must be a
/// [DefaultTabController] ancestor. The tab controller's [TabController.length] /// [DefaultTabController] ancestor. The tab controller's [TabController.length]
@ -1033,7 +1033,7 @@ class TabPageSelectorIndicator extends StatelessWidget {
} }
/// Displays a row of small circular indicators, one per tab. The selected /// Displays a row of small circular indicators, one per tab. The selected
/// tab's indicator is highlighted. Often used in conjuction with a [TabBarView]. /// tab's indicator is highlighted. Often used in conjunction with a [TabBarView].
/// ///
/// If a [TabController] is not provided, then there must be a [DefaultTabController] /// If a [TabController] is not provided, then there must be a [DefaultTabController]
/// ancestor. /// ancestor.
@ -1056,12 +1056,12 @@ class TabPageSelector extends StatelessWidget {
/// The indicator circle's diameter (the default value is 12.0). /// The indicator circle's diameter (the default value is 12.0).
final double indicatorSize; final double indicatorSize;
/// The indicator cicle's fill color for unselected pages. /// The indicator circle's fill color for unselected pages.
/// ///
/// If this parameter is null then the indicator is filled with [Colors.transparent]. /// If this parameter is null then the indicator is filled with [Colors.transparent].
final Color color; final Color color;
/// The indicator cicle's fill color for selected pages and border color /// The indicator circle's fill color for selected pages and border color
/// for all indicator circles. /// for all indicator circles.
/// ///
/// If this parameter is null then the indicator is filled with the theme's /// If this parameter is null then the indicator is filled with the theme's

View File

@ -158,7 +158,7 @@ class _TimePickerHeaderPiece {
/// out horizontally. Pieces are laid out horizontally if portrait orientation, /// out horizontally. Pieces are laid out horizontally if portrait orientation,
/// and vertically in landscape orientation. /// and vertically in landscape orientation.
/// ///
/// One of the pieces is identified as a _centrepiece_. It is a piece that is /// One of the pieces is identified as a _centerpiece_. It is a piece that is
/// positioned in the center of the header, with all other pieces positioned /// positioned in the center of the header, with all other pieces positioned
/// to the left or right of it. /// to the left or right of it.
class _TimePickerHeaderFormat { class _TimePickerHeaderFormat {

View File

@ -107,7 +107,7 @@ class TwoLevelListItem extends StatelessWidget {
/// This class is deprecated. Please use [ExpansionTile] instead. /// This class is deprecated. Please use [ExpansionTile] instead.
@deprecated @deprecated
class TwoLevelSublist extends StatefulWidget { class TwoLevelSublist extends StatefulWidget {
/// Creates an item in a two-level list that can expland and collapse. /// Creates an item in a two-level list that can expand and collapse.
const TwoLevelSublist({ const TwoLevelSublist({
Key key, Key key,
this.leading, this.leading,

View File

@ -91,7 +91,7 @@ class TextTheme {
/// Used for the default text style for [Material]. /// Used for the default text style for [Material].
final TextStyle body1; final TextStyle body1;
/// Used for auxillary text associated with images. /// Used for auxiliary text associated with images.
final TextStyle caption; final TextStyle caption;
/// Used for text on [RaisedButton] and [FlatButton]. /// Used for text on [RaisedButton] and [FlatButton].

View File

@ -131,7 +131,7 @@ class _AccountDetails extends StatelessWidget {
/// ///
/// See also: /// See also:
/// ///
/// * [DrawerHeader], for a drawer header that doesn't show user acounts /// * [DrawerHeader], for a drawer header that doesn't show user accounts
/// * <https://material.google.com/patterns/navigation-drawer.html> /// * <https://material.google.com/patterns/navigation-drawer.html>
class UserAccountsDrawerHeader extends StatefulWidget { class UserAccountsDrawerHeader extends StatefulWidget {
/// Creates a material design drawer header. /// Creates a material design drawer header.

View File

@ -148,7 +148,7 @@ abstract class AlignmentGeometry {
/// `Alignment(1.0, 1.0)` represents the bottom right of the rectangle. /// `Alignment(1.0, 1.0)` represents the bottom right of the rectangle.
/// ///
/// `Alignment(0.0, 3.0)` represents a point that is horizontally centered with /// `Alignment(0.0, 3.0)` represents a point that is horizontally centered with
/// respect to the rectangel and vertically below the bottom of the rectangle by /// respect to the rectangle and vertically below the bottom of the rectangle by
/// the height of the rectangle. /// the height of the rectangle.
/// ///
/// [Alignment] use visual coordinates, which means increasing [x] moves the /// [Alignment] use visual coordinates, which means increasing [x] moves the

View File

@ -126,7 +126,7 @@ abstract class Decoration extends Diagnosticable {
/// The decoration may be sensitive to the [TextDirection]. The /// The decoration may be sensitive to the [TextDirection]. The
/// `textDirection` argument should therefore be provided. If it is known that /// `textDirection` argument should therefore be provided. If it is known that
/// the decoration is not affected by the text direction, then the argument /// the decoration is not affected by the text direction, then the argument
/// may be ommitted or set to null. /// may be omitted or set to null.
bool hitTest(Size size, Offset position, { TextDirection textDirection }) => true; bool hitTest(Size size, Offset position, { TextDirection textDirection }) => true;
/// Returns a [BoxPainter] that will paint this decoration. /// Returns a [BoxPainter] that will paint this decoration.

View File

@ -172,7 +172,7 @@ abstract class Gradient {
/// * [BoxDecoration], which can take a [LinearGradient] in its /// * [BoxDecoration], which can take a [LinearGradient] in its
/// [BoxDecoration.gradient] property. /// [BoxDecoration.gradient] property.
class LinearGradient extends Gradient { class LinearGradient extends Gradient {
/// Creates a linear graident. /// Creates a linear gradient.
/// ///
/// The [colors] argument must not be null. If [stops] is non-null, it must /// The [colors] argument must not be null. If [stops] is non-null, it must
/// have the same length as [colors]. /// have the same length as [colors].

View File

@ -23,7 +23,7 @@ enum ImageRepeat {
/// Repeat the image in the y direction until the box is filled vertically. /// Repeat the image in the y direction until the box is filled vertically.
repeatY, repeatY,
/// Leave uncovered poritions of the box transparent. /// Leave uncovered portions of the box transparent.
noRepeat noRepeat
} }

View File

@ -52,7 +52,7 @@ import 'rounded_rectangle_border.dart';
/// ///
/// * [DecoratedBox] and [Container], widgets that can be configured with /// * [DecoratedBox] and [Container], widgets that can be configured with
/// [ShapeDecoration] objects. /// [ShapeDecoration] objects.
/// * [BoxDecoration], a similar [Decoration] that is optimised for rectangles /// * [BoxDecoration], a similar [Decoration] that is optimized for rectangles
/// specifically. /// specifically.
/// * [ShapeBorder], the base class for the objects that are used in the /// * [ShapeBorder], the base class for the objects that are used in the
/// [shape] property. /// [shape] property.

View File

@ -105,7 +105,7 @@ class TextPainter {
/// example, if the [text] is an English phrase followed by a Hebrew phrase, /// example, if the [text] is an English phrase followed by a Hebrew phrase,
/// in a [TextDirection.ltr] context the English phrase will be on the left /// in a [TextDirection.ltr] context the English phrase will be on the left
/// and the Hebrew phrase to its right, while in a [TextDirection.rtl] /// and the Hebrew phrase to its right, while in a [TextDirection.rtl]
/// context, the English phrase will be on the right and the Hebrow phrase on /// context, the English phrase will be on the right and the Hebrew phrase on
/// its left. /// its left.
/// ///
/// After this is set, you must call [layout] before the next call to [paint]. /// After this is set, you must call [layout] before the next call to [paint].

View File

@ -178,7 +178,7 @@ class TextSpan extends DiagnosticableTree {
builder.pop(); builder.pop();
} }
/// Walks this text span and its decendants in pre-order and calls [visitor] /// Walks this text span and its descendants in pre-order and calls [visitor]
/// for each span that has text. /// for each span that has text.
bool visitTextSpan(bool visitor(TextSpan span)) { bool visitTextSpan(bool visitor(TextSpan span)) {
if (text != null) { if (text != null) {

View File

@ -150,7 +150,7 @@ const String _kDefaultDebugLabel = 'unknown';
/// relative to the `pubspec.yaml` file. The `weight` property specifies the /// relative to the `pubspec.yaml` file. The `weight` property specifies the
/// weight of the glyph outlines in the file as an integer multiple of 100 /// weight of the glyph outlines in the file as an integer multiple of 100
/// between 100 and 900. This corresponds to the [FontWeight] class and can be /// between 100 and 900. This corresponds to the [FontWeight] class and can be
/// used in the [fontWeight] argument. The `style` property specfies whether the /// used in the [fontWeight] argument. The `style` property specifies whether the
/// outlines in the file are `italic` or `normal`. These values correspond to /// outlines in the file are `italic` or `normal`. These values correspond to
/// the [FontStyle] class and can be used in the [fontStyle] argument. /// the [FontStyle] class and can be used in the [fontStyle] argument.
/// ///

View File

@ -8,7 +8,7 @@ import 'simulation.dart';
/// ///
/// The limits are only applied to the other simulation's outputs. For example, /// The limits are only applied to the other simulation's outputs. For example,
/// if a maximum position was applied to a gravity simulation with the /// if a maximum position was applied to a gravity simulation with the
/// particle's initial velocity being up, and the accerelation being down, and /// particle's initial velocity being up, and the acceleration being down, and
/// the maximum position being between the initial position and the curve's /// the maximum position being between the initial position and the curve's
/// apogee, then the particle would return to its initial position in the same /// apogee, then the particle would return to its initial position in the same
/// amount of time as it would have if the maximum had not been applied; the /// amount of time as it would have if the maximum had not been applied; the

View File

@ -22,7 +22,7 @@ class SpringDescription {
}); });
/// Creates a spring given the mass (m), stiffness (k), and damping ratio (ζ). /// Creates a spring given the mass (m), stiffness (k), and damping ratio (ζ).
/// The damping ratio is especially useful trying to determing the type of /// The damping ratio is especially useful trying to determining the type of
/// spring to create. A ratio of 1.0 creates a critically damped spring, > 1.0 /// spring to create. A ratio of 1.0 creates a critically damped spring, > 1.0
/// creates an overdamped spring and < 1.0 an underdamped one. /// creates an overdamped spring and < 1.0 an underdamped one.
/// ///

View File

@ -329,7 +329,7 @@ class BoxConstraints extends Constraints {
return result; return result;
} }
/// The biggest size that satisifes the constraints. /// The biggest size that satisfies the constraints.
Size get biggest => new Size(constrainWidth(), constrainHeight()); Size get biggest => new Size(constrainWidth(), constrainHeight());
/// The smallest size that satisfies the constraints. /// The smallest size that satisfies the constraints.
@ -341,7 +341,7 @@ class BoxConstraints extends Constraints {
/// Whether there is exactly one height value that satisfies the constraints. /// Whether there is exactly one height value that satisfies the constraints.
bool get hasTightHeight => minHeight >= maxHeight; bool get hasTightHeight => minHeight >= maxHeight;
/// Whether there is exactly one size that satifies the constraints. /// Whether there is exactly one size that satisfies the constraints.
@override @override
bool get isTight => hasTightWidth && hasTightHeight; bool get isTight => hasTightWidth && hasTightHeight;
@ -617,7 +617,7 @@ class _IntrinsicDimensionsCacheEntry {
int get hashCode => hashValues(dimension, argument); int get hashCode => hashValues(dimension, argument);
} }
/// A render object in a 2D cartesian coordinate system. /// A render object in a 2D Cartesian coordinate system.
/// ///
/// The [size] of each box is expressed as a width and a height. Each box has /// The [size] of each box is expressed as a width and a height. Each box has
/// its own coordinate system in which its upper left corner is placed at (0, /// its own coordinate system in which its upper left corner is placed at (0,
@ -640,7 +640,7 @@ class _IntrinsicDimensionsCacheEntry {
/// ///
/// One would implement a new [RenderBox] subclass to describe a new layout /// One would implement a new [RenderBox] subclass to describe a new layout
/// model, new paint model, new hit-testing model, or new semantics model, while /// model, new paint model, new hit-testing model, or new semantics model, while
/// remaining in the cartesian space defined by the [RenderBox] protocol. /// remaining in the Cartesian space defined by the [RenderBox] protocol.
/// ///
/// To create a new protocol, consider subclassing [RenderObject] instead. /// To create a new protocol, consider subclassing [RenderObject] instead.
/// ///
@ -735,7 +735,7 @@ class _IntrinsicDimensionsCacheEntry {
/// Children can have additional data owned by the parent but stored on the /// Children can have additional data owned by the parent but stored on the
/// child using the [parentData] field. The class used for that data must /// child using the [parentData] field. The class used for that data must
/// inherit from [ParentData]. The [setupParentData] method is used to /// inherit from [ParentData]. The [setupParentData] method is used to
/// initialise the [parentData] field of a child when the child is attached. /// initialize the [parentData] field of a child when the child is attached.
/// ///
/// By convention, [RenderBox] objects that have [RenderBox] children use the /// By convention, [RenderBox] objects that have [RenderBox] children use the
/// [BoxParentData] class, which has a [BoxParentData.offset] field to store the /// [BoxParentData] class, which has a [BoxParentData.offset] field to store the
@ -1427,7 +1427,7 @@ abstract class RenderBox extends RenderObject {
/// ///
/// The size of a box should be set only during the box's [performLayout] or /// The size of a box should be set only during the box's [performLayout] or
/// [performResize] functions. If you wish to change the size of a box outside /// [performResize] functions. If you wish to change the size of a box outside
/// of those functins, call [markNeedsLayout] instead to schedule a layout of /// of those functions, call [markNeedsLayout] instead to schedule a layout of
/// the box. /// the box.
Size get size { Size get size {
assert(hasSize); assert(hasSize);
@ -1911,7 +1911,7 @@ abstract class RenderBox extends RenderObject {
transform.translate(offset.dx, offset.dy); transform.translate(offset.dx, offset.dy);
} }
/// Convert the given point from the global coodinate system in logical pixels /// Convert the given point from the global coordinate system in logical pixels
/// to the local coordinate system for this box. /// to the local coordinate system for this box.
/// ///
/// If the transform from global coordinates to local coordinates is /// If the transform from global coordinates to local coordinates is

View File

@ -15,7 +15,7 @@ const HSVColor _kDebugDefaultRepaintColor = const HSVColor.fromAHSV(0.4, 60.0, 1
/// Causes each RenderBox to paint a box around its bounds, and some extra /// Causes each RenderBox to paint a box around its bounds, and some extra
/// boxes, such as [RenderPadding], to draw construction lines. /// boxes, such as [RenderPadding], to draw construction lines.
/// ///
/// The edges of boies are painted as a one-pixel-thick `const Color(0xFF00FFFF)` outline. /// The edges of the boxes are painted as a one-pixel-thick `const Color(0xFF00FFFF)` outline.
/// ///
/// Spacing is painted as a solid `const Color(0x90909090)` area. /// Spacing is painted as a solid `const Color(0x90909090)` area.
/// ///

View File

@ -193,7 +193,7 @@ class RenderEditable extends RenderBox {
/// example, if the [text] is an English phrase followed by a Hebrew phrase, /// example, if the [text] is an English phrase followed by a Hebrew phrase,
/// in a [TextDirection.ltr] context the English phrase will be on the left /// in a [TextDirection.ltr] context the English phrase will be on the left
/// and the Hebrew phrase to its right, while in a [TextDirection.rtl] /// and the Hebrew phrase to its right, while in a [TextDirection.rtl]
/// context, the English phrase will be on the right and the Hebrow phrase on /// context, the English phrase will be on the right and the Hebrew phrase on
/// its left. /// its left.
/// ///
/// This must not be null. /// This must not be null.

View File

@ -256,7 +256,7 @@ class RenderImage extends RenderBox {
/// Find a size for the render image within the given constraints. /// Find a size for the render image within the given constraints.
/// ///
/// - The dimensions of the RenderImage must fit within the constraints. /// - The dimensions of the RenderImage must fit within the constraints.
/// - The aspect ratio of the RenderImage matches the instrinsic aspect /// - The aspect ratio of the RenderImage matches the intrinsic aspect
/// ratio of the image. /// ratio of the image.
/// - The RenderImage's dimension are maximal subject to being smaller than /// - The RenderImage's dimension are maximal subject to being smaller than
/// the intrinsic size of the image. /// the intrinsic size of the image.

View File

@ -443,7 +443,7 @@ class ContainerLayer extends Layer {
/// before any of the properties have been changed. /// before any of the properties have been changed.
/// ///
/// The default implementation does nothing, since [ContainerLayer], by /// The default implementation does nothing, since [ContainerLayer], by
/// default, composits its children at the origin of the [ContainerLayer] /// default, composites its children at the origin of the [ContainerLayer]
/// itself. /// itself.
/// ///
/// The `child` argument should generally not be null, since in principle a /// The `child` argument should generally not be null, since in principle a
@ -989,7 +989,7 @@ class FollowerLayer extends ContainerLayer {
/// The transform that was used during the last composition phase. /// The transform that was used during the last composition phase.
/// ///
/// If the [link] was not linked to a [LeaderLayer], or if this layer has /// If the [link] was not linked to a [LeaderLayer], or if this layer has
/// a degerenate matrix applied, then this will be null. /// a degenerate matrix applied, then this will be null.
/// ///
/// This method returns a new [Matrix4] instance each time it is invoked. /// This method returns a new [Matrix4] instance each time it is invoked.
Matrix4 getLastTransform() { Matrix4 getLastTransform() {

View File

@ -320,7 +320,7 @@ class PaintingContext {
/// matches the value of [RenderObject.needsCompositing] for the caller. /// matches the value of [RenderObject.needsCompositing] for the caller.
/// * `offset` is the offset from the origin of the canvas' coordinate system /// * `offset` is the offset from the origin of the canvas' coordinate system
/// to the origin of the caller's coordinate system. /// to the origin of the caller's coordinate system.
/// * `clipRect` is rectangle (in the caller's coodinate system) to use to /// * `clipRect` is rectangle (in the caller's coordinate system) to use to
/// clip the painting done by [painter]. /// clip the painting done by [painter].
/// * `painter` is a callback that will paint with the [clipRect] applied. This /// * `painter` is a callback that will paint with the [clipRect] applied. This
/// function calls the [painter] synchronously. /// function calls the [painter] synchronously.
@ -344,9 +344,9 @@ class PaintingContext {
/// matches the value of [RenderObject.needsCompositing] for the caller. /// matches the value of [RenderObject.needsCompositing] for the caller.
/// * `offset` is the offset from the origin of the canvas' coordinate system /// * `offset` is the offset from the origin of the canvas' coordinate system
/// to the origin of the caller's coordinate system. /// to the origin of the caller's coordinate system.
/// * `bounds` is the region of the canvas (in the caller's coodinate system) /// * `bounds` is the region of the canvas (in the caller's coordinate system)
/// into which `painter` will paint in. /// into which `painter` will paint in.
/// * `clipRRect` is the rounded-rectangle (in the caller's coodinate system) /// * `clipRRect` is the rounded-rectangle (in the caller's coordinate system)
/// to use to clip the painting done by `painter`. /// to use to clip the painting done by `painter`.
/// * `painter` is a callback that will paint with the `clipRRect` applied. This /// * `painter` is a callback that will paint with the `clipRRect` applied. This
/// function calls the `painter` synchronously. /// function calls the `painter` synchronously.
@ -373,9 +373,9 @@ class PaintingContext {
/// matches the value of [RenderObject.needsCompositing] for the caller. /// matches the value of [RenderObject.needsCompositing] for the caller.
/// * `offset` is the offset from the origin of the canvas' coordinate system /// * `offset` is the offset from the origin of the canvas' coordinate system
/// to the origin of the caller's coordinate system. /// to the origin of the caller's coordinate system.
/// * `bounds` is the region of the canvas (in the caller's coodinate system) /// * `bounds` is the region of the canvas (in the caller's coordinate system)
/// into which `painter` will paint in. /// into which `painter` will paint in.
/// * `clipPath` is the path (in the coodinate system of the caller) to use to /// * `clipPath` is the path (in the coordinate system of the caller) to use to
/// clip the painting done by `painter`. /// clip the painting done by `painter`.
/// * `painter` is a callback that will paint with the `clipPath` applied. This /// * `painter` is a callback that will paint with the `clipPath` applied. This
/// function calls the `painter` synchronously. /// function calls the `painter` synchronously.
@ -402,7 +402,7 @@ class PaintingContext {
/// matches the value of [RenderObject.needsCompositing] for the caller. /// matches the value of [RenderObject.needsCompositing] for the caller.
/// * `offset` is the offset from the origin of the canvas' coordinate system /// * `offset` is the offset from the origin of the canvas' coordinate system
/// to the origin of the caller's coordinate system. /// to the origin of the caller's coordinate system.
/// * `transform` is the matrix to apply to the paiting done by `painter`. /// * `transform` is the matrix to apply to the painting done by `painter`.
/// * `painter` is a callback that will paint with the `transform` applied. This /// * `painter` is a callback that will paint with the `transform` applied. This
/// function calls the `painter` synchronously. /// function calls the `painter` synchronously.
void pushTransform(bool needsCompositing, Offset offset, Matrix4 transform, PaintingContextCallback painter) { void pushTransform(bool needsCompositing, Offset offset, Matrix4 transform, PaintingContextCallback painter) {
@ -425,7 +425,7 @@ class PaintingContext {
} }
} }
/// Blend further paiting with an alpha value. /// Blend further painting with an alpha value.
/// ///
/// * `offset` is the offset from the origin of the canvas' coordinate system /// * `offset` is the offset from the origin of the canvas' coordinate system
/// to the origin of the caller's coordinate system. /// to the origin of the caller's coordinate system.
@ -617,7 +617,7 @@ class SemanticsHandle {
/// clipping. If a render object has a composited child, its needs to use a /// clipping. If a render object has a composited child, its needs to use a
/// [Layer] to create the clip in order for the clip to apply to the /// [Layer] to create the clip in order for the clip to apply to the
/// composited child (which will be painted into its own [Layer]). /// composited child (which will be painted into its own [Layer]).
/// 3. [flushPaint] visites any render objects that need to paint. During this /// 3. [flushPaint] visits any render objects that need to paint. During this
/// phase, render objects get a chance to record painting commands into /// phase, render objects get a chance to record painting commands into
/// [PictureLayer]s and construct other composited [Layer]s. /// [PictureLayer]s and construct other composited [Layer]s.
/// 4. Finally, if semantics are enabled, [flushSemantics] will compile the /// 4. Finally, if semantics are enabled, [flushSemantics] will compile the
@ -890,7 +890,7 @@ class PipelineOwner {
/// ///
/// The [RenderObject] class, however, does not define a child model (e.g. /// The [RenderObject] class, however, does not define a child model (e.g.
/// whether a node has zero, one, or more children). It also doesn't define a /// whether a node has zero, one, or more children). It also doesn't define a
/// coordinate system (e.g. whether children are positioned in cartesian /// coordinate system (e.g. whether children are positioned in Cartesian
/// coordinates, in polar coordinates, etc) or a specific layout protocol (e.g. /// coordinates, in polar coordinates, etc) or a specific layout protocol (e.g.
/// whether the layout is width-in-height-out, or constraint-in-size-out, or /// whether the layout is width-in-height-out, or constraint-in-size-out, or
/// whether the parent sets the size and position of the child before or after /// whether the parent sets the size and position of the child before or after
@ -898,13 +898,13 @@ class PipelineOwner {
/// their parent's [parentData] slot). /// their parent's [parentData] slot).
/// ///
/// The [RenderBox] subclass introduces the opinion that the layout /// The [RenderBox] subclass introduces the opinion that the layout
/// system uses cartesian coordinates. /// system uses Cartesian coordinates.
/// ///
/// ## Writing a RenderObject subclass /// ## Writing a RenderObject subclass
/// ///
/// In most cases, subclassing [RenderObject] itself is overkill, and /// In most cases, subclassing [RenderObject] itself is overkill, and
/// [RenderBox] would be a better starting point. However, if a render object /// [RenderBox] would be a better starting point. However, if a render object
/// doesn't want to use a cartesian coordinate system, then it should indeed /// doesn't want to use a Cartesian coordinate system, then it should indeed
/// inherit from [RenderObject] directly. This allows it to define its own /// inherit from [RenderObject] directly. This allows it to define its own
/// layout protocol by using a new subclass of [Constraints] rather than using /// layout protocol by using a new subclass of [Constraints] rather than using
/// [BoxConstraints], and by potentially using an entirely new set of objects /// [BoxConstraints], and by potentially using an entirely new set of objects
@ -1314,7 +1314,7 @@ abstract class RenderObject extends AbstractNode with DiagnosticableTreeMixin im
/// situations in which the parent needs to be notified if the child is /// situations in which the parent needs to be notified if the child is
/// dirtied. Such subclasses override markNeedsLayout and either call /// dirtied. Such subclasses override markNeedsLayout and either call
/// `super.markNeedsLayout()`, in the normal case, or call /// `super.markNeedsLayout()`, in the normal case, or call
/// [markParentNeedsLayout], in the case where the parent neds to be laid out /// [markParentNeedsLayout], in the case where the parent needs to be laid out
/// as well as the child. /// as well as the child.
/// ///
/// If [sizedByParent] has changed, called /// If [sizedByParent] has changed, called

View File

@ -104,7 +104,7 @@ class RenderParagraph extends RenderBox {
/// example, if the [text] is an English phrase followed by a Hebrew phrase, /// example, if the [text] is an English phrase followed by a Hebrew phrase,
/// in a [TextDirection.ltr] context the English phrase will be on the left /// in a [TextDirection.ltr] context the English phrase will be on the left
/// and the Hebrew phrase to its right, while in a [TextDirection.rtl] /// and the Hebrew phrase to its right, while in a [TextDirection.rtl]
/// context, the English phrase will be on the right and the Hebrow phrase on /// context, the English phrase will be on the right and the Hebrew phrase on
/// its left. /// its left.
/// ///
/// This must not be null. /// This must not be null.

View File

@ -37,7 +37,7 @@ enum PerformanceOverlayOption {
/// Display the engine frame times as they change over a set period of time /// Display the engine frame times as they change over a set period of time
/// in the form of a graph. The y axis of the graph denotes the total time /// in the form of a graph. The y axis of the graph denotes the total time
/// spent by the eninge as a fraction of the total frame slice. When the bar /// spent by the engine as a fraction of the total frame slice. When the bar
/// turns red, a frame is lost. /// turns red, a frame is lost.
visualizeEngineStatistics, visualizeEngineStatistics,
} }

View File

@ -2223,7 +2223,7 @@ abstract class CustomPainter extends Listenable {
/// ///
/// When asked to paint, [RenderCustomPaint] first asks its [painter] to paint /// When asked to paint, [RenderCustomPaint] first asks its [painter] to paint
/// on the current canvas, then it paints its child, and then, after painting /// on the current canvas, then it paints its child, and then, after painting
/// its child, it asks its [foregroundPainter] to paint. The coodinate system of /// its child, it asks its [foregroundPainter] to paint. The coordinate system of
/// the canvas matches the coordinate system of the [CustomPaint] object. The /// the canvas matches the coordinate system of the [CustomPaint] object. The
/// painters are expected to paint within a rectangle starting at the origin and /// painters are expected to paint within a rectangle starting at the origin and
/// encompassing a region of the given size. (If the painters paint outside /// encompassing a region of the given size. (If the painters paint outside
@ -3789,7 +3789,7 @@ class RenderLeaderLayer extends RenderProxyBox {
} }
} }
/// Transform the child so that its origin is [offset] from the orign of the /// Transform the child so that its origin is [offset] from the origin of the
/// [RenderLeaderLayer] with the same [LayerLink]. /// [RenderLeaderLayer] with the same [LayerLink].
/// ///
/// The [RenderLeaderLayer] in question must be earlier in the paint order. /// The [RenderLeaderLayer] in question must be earlier in the paint order.

View File

@ -15,7 +15,7 @@ import 'stack.dart' show RelativeRect;
/// Abstract class for one-child-layout render boxes that provide control over /// Abstract class for one-child-layout render boxes that provide control over
/// the child's position. /// the child's position.
abstract class RenderShiftedBox extends RenderBox with RenderObjectWithChildMixin<RenderBox> { abstract class RenderShiftedBox extends RenderBox with RenderObjectWithChildMixin<RenderBox> {
/// Initializes the [child] property for sublasses. /// Initializes the [child] property for subclasses.
RenderShiftedBox(RenderBox child) { RenderShiftedBox(RenderBox child) {
this.child = child; this.child = child;
} }
@ -346,7 +346,7 @@ class RenderPositionedBox extends RenderAligningShiftedBox {
_heightFactor = heightFactor, _heightFactor = heightFactor,
super(child: child, alignment: alignment, textDirection: textDirection); super(child: child, alignment: alignment, textDirection: textDirection);
/// If non-null, sets its width to the child's width multipled by this factor. /// If non-null, sets its width to the child's width multiplied by this factor.
/// ///
/// Can be both greater and less than 1.0 but must be positive. /// Can be both greater and less than 1.0 but must be positive.
double get widthFactor => _widthFactor; double get widthFactor => _widthFactor;
@ -359,7 +359,7 @@ class RenderPositionedBox extends RenderAligningShiftedBox {
markNeedsLayout(); markNeedsLayout();
} }
/// If non-null, sets its height to the child's height multipled by this factor. /// If non-null, sets its height to the child's height multiplied by this factor.
/// ///
/// Can be both greater and less than 1.0 but must be positive. /// Can be both greater and less than 1.0 but must be positive.
double get heightFactor => _heightFactor; double get heightFactor => _heightFactor;
@ -815,7 +815,7 @@ class RenderFractionallySizedOverflowBox extends RenderAligningShiftedBox {
/// If non-null, the factor of the incoming width to use. /// If non-null, the factor of the incoming width to use.
/// ///
/// If non-null, the child is given a tight width constraint that is the max /// If non-null, the child is given a tight width constraint that is the max
/// incoming width constraint multipled by this factor. If null, the child is /// incoming width constraint multiplied by this factor. If null, the child is
/// given the incoming width constraints. /// given the incoming width constraints.
double get widthFactor => _widthFactor; double get widthFactor => _widthFactor;
double _widthFactor; double _widthFactor;
@ -830,7 +830,7 @@ class RenderFractionallySizedOverflowBox extends RenderAligningShiftedBox {
/// If non-null, the factor of the incoming height to use. /// If non-null, the factor of the incoming height to use.
/// ///
/// If non-null, the child is given a tight height constraint that is the max /// If non-null, the child is given a tight height constraint that is the max
/// incoming width constraint multipled by this factor. If null, the child is /// incoming width constraint multiplied by this factor. If null, the child is
/// given the incoming width constraints. /// given the incoming width constraints.
double get heightFactor => _heightFactor; double get heightFactor => _heightFactor;
double _heightFactor; double _heightFactor;
@ -967,7 +967,7 @@ abstract class SingleChildLayoutDelegate {
/// The size of this object given the incoming constraints. /// The size of this object given the incoming constraints.
/// ///
/// Defaults to the biggest size that satifies the given constraints. /// Defaults to the biggest size that satisfies the given constraints.
Size getSize(BoxConstraints constraints) => constraints.biggest; Size getSize(BoxConstraints constraints) => constraints.biggest;
/// The constraints for the child given the incoming constraints. /// The constraints for the child given the incoming constraints.
@ -1019,7 +1019,7 @@ abstract class SingleChildLayoutDelegate {
/// of the parent, but the size of the parent cannot depend on the size of the /// of the parent, but the size of the parent cannot depend on the size of the
/// child. /// child.
class RenderCustomSingleChildLayoutBox extends RenderShiftedBox { class RenderCustomSingleChildLayoutBox extends RenderShiftedBox {
/// Creates a render box that defers its layout to a delgate. /// Creates a render box that defers its layout to a delegate.
/// ///
/// The [delegate] argument must not be null. /// The [delegate] argument must not be null.
RenderCustomSingleChildLayoutBox({ RenderCustomSingleChildLayoutBox({
@ -1118,7 +1118,7 @@ class RenderCustomSingleChildLayoutBox extends RenderShiftedBox {
/// ///
/// If [baseline] is less than the distance from the top of the child /// If [baseline] is less than the distance from the top of the child
/// to the baseline of the child, then the child will overflow the top /// to the baseline of the child, then the child will overflow the top
/// of the box. This is typically not desireable, in particular, that /// of the box. This is typically not desirable, in particular, that
/// part of the child will not be found when doing hit tests, so the /// part of the child will not be found when doing hit tests, so the
/// user cannot interact with that part of the child. /// user cannot interact with that part of the child.
/// ///

View File

@ -641,7 +641,7 @@ class SliverHitTestEntry extends HitTestEntry {
/// Parent data structure used by parents of slivers that position their /// Parent data structure used by parents of slivers that position their
/// children using layout offsets. /// children using layout offsets.
/// ///
/// This data structure is optimised for fast layout. It is best used by parents /// This data structure is optimized for fast layout. It is best used by parents
/// that expect to have many children whose relative positions don't change even /// that expect to have many children whose relative positions don't change even
/// when the scroll offset does. /// when the scroll offset does.
class SliverLogicalParentData extends ParentData { class SliverLogicalParentData extends ParentData {
@ -667,7 +667,7 @@ class SliverLogicalContainerParentData extends SliverLogicalParentData with Cont
/// ///
/// For example, used by [RenderViewport]. /// For example, used by [RenderViewport].
/// ///
/// This data structure is optimised for fast painting, at the cost of requiring /// This data structure is optimized for fast painting, at the cost of requiring
/// additional work during layout when the children change their offsets. It is /// additional work during layout when the children change their offsets. It is
/// best used by parents that expect to have few children, especially if those /// best used by parents that expect to have few children, especially if those
/// children will themselves be very tall relative to the parent. /// children will themselves be very tall relative to the parent.
@ -852,7 +852,7 @@ abstract class RenderSliver extends RenderObject {
/// ///
/// The geometry of a sliver should be set only during the sliver's /// The geometry of a sliver should be set only during the sliver's
/// [performLayout] or [performResize] functions. If you wish to change the /// [performLayout] or [performResize] functions. If you wish to change the
/// geometry of a sliver outside of those functins, call [markNeedsLayout] /// geometry of a sliver outside of those functions, call [markNeedsLayout]
/// instead to schedule a layout of the sliver. /// instead to schedule a layout of the sliver.
SliverGeometry get geometry => _geometry; SliverGeometry get geometry => _geometry;
SliverGeometry _geometry; SliverGeometry _geometry;
@ -1300,7 +1300,7 @@ abstract class RenderSliverHelpers implements RenderSliver {
/// [RenderBox] widgets. /// [RenderBox] widgets.
/// ///
/// This function takes care of converting the position from the sliver /// This function takes care of converting the position from the sliver
/// coordinate system to the cartesian coordinate system used by [RenderBox]. /// coordinate system to the Cartesian coordinate system used by [RenderBox].
/// ///
/// This function relies on [childMainAxisPosition] to determine the position of /// This function relies on [childMainAxisPosition] to determine the position of
/// child in question. /// child in question.

View File

@ -97,7 +97,7 @@ class SliverGridGeometry {
/// * [SliverGridGeometry], which represents the size and position of a single /// * [SliverGridGeometry], which represents the size and position of a single
/// tile in a grid. /// tile in a grid.
/// * [SliverGridDelegate.getLayout], which returns this object to describe the /// * [SliverGridDelegate.getLayout], which returns this object to describe the
/// delegates's layout. /// delegate's layout.
/// * [RenderSliverGrid], which uses this class during its /// * [RenderSliverGrid], which uses this class during its
/// [RenderSliverGrid.performLayout] method. /// [RenderSliverGrid.performLayout] method.
@immutable @immutable
@ -133,11 +133,11 @@ abstract class SliverGridLayout {
/// ///
/// * [SliverGridDelegateWithFixedCrossAxisCount], which uses this layout. /// * [SliverGridDelegateWithFixedCrossAxisCount], which uses this layout.
/// * [SliverGridDelegateWithMaxCrossAxisExtent], which uses this layout. /// * [SliverGridDelegateWithMaxCrossAxisExtent], which uses this layout.
/// * [SliverGridLayout], which represents an abitrary tile layout. /// * [SliverGridLayout], which represents an arbitrary tile layout.
/// * [SliverGridGeometry], which represents the size and position of a single /// * [SliverGridGeometry], which represents the size and position of a single
/// tile in a grid. /// tile in a grid.
/// * [SliverGridDelegate.getLayout], which returns this object to describe the /// * [SliverGridDelegate.getLayout], which returns this object to describe the
/// delegates's layout. /// delegate's layout.
/// * [RenderSliverGrid], which uses this class during its /// * [RenderSliverGrid], which uses this class during its
/// [RenderSliverGrid.performLayout] method. /// [RenderSliverGrid.performLayout] method.
class SliverGridRegularTileLayout extends SliverGridLayout { class SliverGridRegularTileLayout extends SliverGridLayout {

View File

@ -136,7 +136,7 @@ class SliverMultiBoxAdaptorParentData extends SliverLogicalParentData with Conta
/// * Children can be removed except during a layout pass if they have already /// * Children can be removed except during a layout pass if they have already
/// been laid out during that layout pass. /// been laid out during that layout pass.
/// * Children cannot be added except during a call to [childManager], and /// * Children cannot be added except during a call to [childManager], and
/// then only if there is no child correspending to that index (or the child /// then only if there is no child corresponding to that index (or the child
/// child corresponding to that index was first removed). /// child corresponding to that index was first removed).
/// ///
/// See also: /// See also:

View File

@ -331,7 +331,7 @@ enum TableCellVerticalAlignment {
/// used is specified by [RenderTable.textBaseline]. It is not valid to use /// used is specified by [RenderTable.textBaseline]. It is not valid to use
/// the baseline value if [RenderTable.textBaseline] is not specified. /// the baseline value if [RenderTable.textBaseline] is not specified.
/// ///
/// This vertial alignment is relatively expensive because it causes the table /// This vertical alignment is relatively expensive because it causes the table
/// to compute the baseline for each cell in the row. /// to compute the baseline for each cell in the row.
baseline, baseline,
@ -397,7 +397,7 @@ class RenderTable extends RenderBox {
/// in the table. /// in the table.
/// ///
/// Changing the number of columns is an expensive operation because the table /// Changing the number of columns is an expensive operation because the table
/// needs to rearranage its internal representation. /// needs to rearrange its internal representation.
int get columns => _columns; int get columns => _columns;
int _columns; int _columns;
set columns(int value) { set columns(int value) {

View File

@ -61,7 +61,7 @@ abstract class RenderAbstractViewport extends RenderObject {
/// This render object provides the shared code for render objects that host /// This render object provides the shared code for render objects that host
/// [RenderSliver] render objects inside a [RenderBox]. The viewport establishes /// [RenderSliver] render objects inside a [RenderBox]. The viewport establishes
/// an [axisDirection], which orients the sliver's coordinate system, which is /// an [axisDirection], which orients the sliver's coordinate system, which is
/// based on scroll offsets rather than cartesian coordinates. /// based on scroll offsets rather than Cartesian coordinates.
/// ///
/// The viewport also listens to an [offset], which determines the /// The viewport also listens to an [offset], which determines the
/// [SliverConstraints.scrollOffset] input to the sliver layout protocol. /// [SliverConstraints.scrollOffset] input to the sliver layout protocol.
@ -242,7 +242,7 @@ abstract class RenderViewportBase<ParentDataClass extends ContainerParentDataMix
/// and stops once `advance` returns null. /// and stops once `advance` returns null.
/// ///
/// * `scrollOffset` is the [SliverConstraints.scrollOffset] to pass the /// * `scrollOffset` is the [SliverConstraints.scrollOffset] to pass the
/// first child. The scroll offset is adjsted by /// first child. The scroll offset is adjusted by
/// [SliverGeometry.scrollExtent] for subsequent children. /// [SliverGeometry.scrollExtent] for subsequent children.
/// * `overlap` is the [SliverConstraints.overlap] to pass the first child. /// * `overlap` is the [SliverConstraints.overlap] to pass the first child.
/// The overlay is adjusted by the [SliverGeometry.paintOrigin] and /// The overlay is adjusted by the [SliverGeometry.paintOrigin] and
@ -613,12 +613,12 @@ abstract class RenderViewportBase<ParentDataClass extends ContainerParentDataMix
@protected @protected
double scrollOffsetOf(RenderSliver child, double scrollOffsetWithinChild); double scrollOffsetOf(RenderSliver child, double scrollOffsetWithinChild);
/// Returns the total scroll obstruction extent of all slivers in theild]. /// Returns the total scroll obstruction extent of all slivers in the viewport
/// of the viewport before [child]. /// before [child].
/// ///
/// This is the extent by which the actual area in which content can scroll /// This is the extent by which the actual area in which content can scroll
/// is reduced. For example, an app bar that is pinned at the top will reduce /// is reduced. For example, an app bar that is pinned at the top will reduce
/// the are in which content can actually scroll by the height of the app bar. /// the area in which content can actually scroll by the height of the app bar.
@protected @protected
double maxScrollObstructionExtentBefore(RenderSliver child); double maxScrollObstructionExtentBefore(RenderSliver child);
@ -706,7 +706,7 @@ abstract class RenderViewportBase<ParentDataClass extends ContainerParentDataMix
/// example, if the [axisDirection] is [AxisDirection.down], the first sliver /// example, if the [axisDirection] is [AxisDirection.down], the first sliver
/// before [center] is placed above the [center]. The slivers that are later in /// before [center] is placed above the [center]. The slivers that are later in
/// the child list than [center] are placed in order in the [axisDirection]. For /// the child list than [center] are placed in order in the [axisDirection]. For
/// example, in the preceeding scenario, the first sliver after [center] is /// example, in the preceding scenario, the first sliver after [center] is
/// placed below the [center]. /// placed below the [center].
/// ///
/// [RenderViewport] cannot contain [RenderBox] children directly. Instead, use /// [RenderViewport] cannot contain [RenderBox] children directly. Instead, use

View File

@ -86,7 +86,7 @@ abstract class ViewportOffset extends ChangeNotifier {
/// For example, if the axis direction is down, then the pixel value /// For example, if the axis direction is down, then the pixel value
/// represents the number of logical pixels to move the children _up_ the /// represents the number of logical pixels to move the children _up_ the
/// screen. Similarly, if the axis direction is left, then the pixels value /// screen. Similarly, if the axis direction is left, then the pixels value
/// represents the number of logical pixesl to move the children to _right_. /// represents the number of logical pixels to move the children to _right_.
/// ///
/// This object notifies its listeners when this value changes (except when /// This object notifies its listeners when this value changes (except when
/// the value changes due to [correctBy]). /// the value changes due to [correctBy]).
@ -108,7 +108,7 @@ abstract class ViewportOffset extends ChangeNotifier {
/// contents, then this will only be called when the viewport recomputes its /// contents, then this will only be called when the viewport recomputes its
/// size (i.e. when its parent lays out), and not during normal scrolling. /// size (i.e. when its parent lays out), and not during normal scrolling.
/// ///
/// If applying the viewport dimentions changes the scroll offset, return /// If applying the viewport dimensions changes the scroll offset, return
/// false. Otherwise, return true. If you return false, the [RenderViewport] /// false. Otherwise, return true. If you return false, the [RenderViewport]
/// will be laid out again with the new scroll offset. This is expensive. (The /// will be laid out again with the new scroll offset. This is expensive. (The
/// return value is answering the question "did you accept these viewport /// return value is answering the question "did you accept these viewport

View File

@ -153,7 +153,7 @@ class RenderWrap extends RenderBox with ContainerRenderObjectMixin<RenderBox, Wr
/// How the children within a run should be places in the main axis. /// How the children within a run should be places in the main axis.
/// ///
/// For example, if [alignment] is [WrapAlignment.center], the children in /// For example, if [alignment] is [WrapAlignment.center], the children in
/// each run are grouped togeter in the center of their run in the main axis. /// each run are grouped together in the center of their run in the main axis.
/// ///
/// Defaults to [WrapAlignment.start]. /// Defaults to [WrapAlignment.start].
/// ///
@ -197,7 +197,7 @@ class RenderWrap extends RenderBox with ContainerRenderObjectMixin<RenderBox, Wr
/// How the runs themselves should be placed in the cross axis. /// How the runs themselves should be placed in the cross axis.
/// ///
/// For example, if [runAlignment] is [WrapAlignment.center], the runs are /// For example, if [runAlignment] is [WrapAlignment.center], the runs are
/// grouped togeter in the center of the overall [RenderWrap] in the cross /// grouped together in the center of the overall [RenderWrap] in the cross
/// axis. /// axis.
/// ///
/// Defaults to [WrapAlignment.start]. /// Defaults to [WrapAlignment.start].

View File

@ -513,7 +513,7 @@ abstract class SchedulerBinding extends BindingBase {
Duration _lastRawTimeStamp = Duration.ZERO; Duration _lastRawTimeStamp = Duration.ZERO;
/// Prepares the scheduler for a non-monotonic change to how time stamps are /// Prepares the scheduler for a non-monotonic change to how time stamps are
/// calcuated. /// calculated.
/// ///
/// Callbacks received from the scheduler assume that their time stamps are /// Callbacks received from the scheduler assume that their time stamps are
/// monotonically increasing. The raw time stamp passed to [handleBeginFrame] /// monotonically increasing. The raw time stamp passed to [handleBeginFrame]

View File

@ -144,7 +144,7 @@ class SemanticsData extends Diagnosticable {
/// The transform from this node's coordinate system to its parent's coordinate system. /// The transform from this node's coordinate system to its parent's coordinate system.
/// ///
/// By default, the transform is null, which represents the identity /// By default, the transform is null, which represents the identity
/// transformation (i.e., that this node has the same coorinate system as its /// transformation (i.e., that this node has the same coordinate system as its
/// parent). /// parent).
final Matrix4 transform; final Matrix4 transform;
@ -270,7 +270,7 @@ class SemanticsNode extends AbstractNode with DiagnosticableTreeMixin {
/// The transform from this node's coordinate system to its parent's coordinate system. /// The transform from this node's coordinate system to its parent's coordinate system.
/// ///
/// By default, the transform is null, which represents the identity /// By default, the transform is null, which represents the identity
/// transformation (i.e., that this node has the same coorinate system as its /// transformation (i.e., that this node has the same coordinate system as its
/// parent). /// parent).
Matrix4 get transform => _transform; Matrix4 get transform => _transform;
Matrix4 _transform; Matrix4 _transform;
@ -429,7 +429,7 @@ class SemanticsNode extends AbstractNode with DiagnosticableTreeMixin {
/// Visits the immediate children of this node. /// Visits the immediate children of this node.
/// ///
/// This function calls visitor for each child in a pre-order travseral /// This function calls visitor for each child in a pre-order traversal
/// until visitor returns false. Returns true if all the visitor calls /// until visitor returns false. Returns true if all the visitor calls
/// returned true, otherwise returns false. /// returned true, otherwise returns false.
void visitChildren(SemanticsNodeVisitor visitor) { void visitChildren(SemanticsNodeVisitor visitor) {
@ -443,7 +443,7 @@ class SemanticsNode extends AbstractNode with DiagnosticableTreeMixin {
/// Visit all the descendants of this node. /// Visit all the descendants of this node.
/// ///
/// This function calls visitor for each descendant in a pre-order travseral /// This function calls visitor for each descendant in a pre-order traversal
/// until visitor returns false. Returns true if all the visitor calls /// until visitor returns false. Returns true if all the visitor calls
/// returned true, otherwise returns false. /// returned true, otherwise returns false.
bool _visitDescendants(SemanticsNodeVisitor visitor) { bool _visitDescendants(SemanticsNodeVisitor visitor) {
@ -541,7 +541,7 @@ class SemanticsNode extends AbstractNode with DiagnosticableTreeMixin {
/// The [SemanticsTag]s this node is tagged with. /// The [SemanticsTag]s this node is tagged with.
/// ///
/// Tags are used during the construction of the semantics tree. They are not /// Tags are used during the construction of the semantics tree. They are not
/// transfered to the engine. /// transferred to the engine.
Set<SemanticsTag> tags; Set<SemanticsTag> tags;
/// Whether this node is tagged with `tag`. /// Whether this node is tagged with `tag`.

View File

@ -153,7 +153,7 @@ class SystemChrome {
/// overwrite the pending value, such that only the last specified value takes /// overwrite the pending value, such that only the last specified value takes
/// effect. /// effect.
/// ///
/// Call this API in code whose lifecyle matches that of the desired /// Call this API in code whose lifecycle matches that of the desired
/// system UI styles. For instance, to change the system UI style on a new /// system UI styles. For instance, to change the system UI style on a new
/// page, consider calling when pushing/popping a new [PageRoute]. /// page, consider calling when pushing/popping a new [PageRoute].
/// ///

View File

@ -39,7 +39,7 @@ class _ActiveItem implements Comparable<_ActiveItem> {
/// A scrolling container that animates items when they are inserted or removed. /// A scrolling container that animates items when they are inserted or removed.
/// ///
/// This widget's [AnimatedListState] can be used to dynmically insert or remove /// This widget's [AnimatedListState] can be used to dynamically insert or remove
/// items. To refer to the [AnimatedListState] either provide a [GlobalKey] or /// items. To refer to the [AnimatedListState] either provide a [GlobalKey] or
/// use the static [of] method from an item's input callback. /// use the static [of] method from an item's input callback.
/// ///
@ -66,7 +66,7 @@ class AnimatedList extends StatefulWidget {
/// List items are only built when they're scrolled into view. /// List items are only built when they're scrolled into view.
/// ///
/// The [AnimatedListItemBuilder] index parameter indicates the item's /// The [AnimatedListItemBuilder] index parameter indicates the item's
/// posiition in the list. The value of the index parameter will be between 0 /// position in the list. The value of the index parameter will be between 0
/// and [initialItemCount] plus the total number of items that have been /// and [initialItemCount] plus the total number of items that have been
/// inserted with [AnimatedListState.insertItem] and less the total number of /// inserted with [AnimatedListState.insertItem] and less the total number of
/// items that have been removed with [AnimatedListState.removeItem]. /// items that have been removed with [AnimatedListState.removeItem].
@ -77,8 +77,8 @@ class AnimatedList extends StatefulWidget {
/// The number of items the list will start with. /// The number of items the list will start with.
/// ///
/// The appareance of the initial items is not animated. They /// The appearance of the initial items is not animated. They
/// are created, as needed, by [itemBuilder] with an animation paramter /// are created, as needed, by [itemBuilder] with an animation parameter
/// of [kAlwaysCompleteAnimation]. /// of [kAlwaysCompleteAnimation].
final int initialItemCount; final int initialItemCount;

View File

@ -213,7 +213,7 @@ class _AutomaticKeepAliveState extends State<AutomaticKeepAlive> {
} }
/// Indicates that the subtree through which this notification bubbles must be /// Indicates that the subtree through which this notification bubbles must be
/// kept alive even if it would normally be discarded as an optimisation. /// kept alive even if it would normally be discarded as an optimization.
/// ///
/// For example, a focused text field might fire this notification to indicate /// For example, a focused text field might fire this notification to indicate
/// that it should not be disposed even if the user scrolls the field off /// that it should not be disposed even if the user scrolls the field off

View File

@ -79,7 +79,7 @@ class BannerPainter extends CustomPainter {
/// example, if the message is an English phrase followed by a Hebrew phrase, /// example, if the message is an English phrase followed by a Hebrew phrase,
/// in a [TextDirection.ltr] context the English phrase will be on the left /// in a [TextDirection.ltr] context the English phrase will be on the left
/// and the Hebrew phrase to its right, while in a [TextDirection.rtl] /// and the Hebrew phrase to its right, while in a [TextDirection.rtl]
/// context, the English phrase will be on the right and the Hebrow phrase on /// context, the English phrase will be on the right and the Hebrew phrase on
/// its left. /// its left.
/// ///
/// See also [layoutDirection], which controls the interpretation of values in /// See also [layoutDirection], which controls the interpretation of values in
@ -265,7 +265,7 @@ class Banner extends StatelessWidget {
/// example, if the message is an English phrase followed by a Hebrew phrase, /// example, if the message is an English phrase followed by a Hebrew phrase,
/// in a [TextDirection.ltr] context the English phrase will be on the left /// in a [TextDirection.ltr] context the English phrase will be on the left
/// and the Hebrew phrase to its right, while in a [TextDirection.rtl] /// and the Hebrew phrase to its right, while in a [TextDirection.rtl]
/// context, the English phrase will be on the right and the Hebrow phrase on /// context, the English phrase will be on the right and the Hebrew phrase on
/// its left. /// its left.
/// ///
/// Defaults to the ambient [Directionality], if any. /// Defaults to the ambient [Directionality], if any.

View File

@ -293,7 +293,7 @@ class BackdropFilter extends SingleChildRenderObjectWidget {
/// ///
/// When asked to paint, [CustomPaint] first asks its [painter] to paint on the /// When asked to paint, [CustomPaint] first asks its [painter] to paint on the
/// current canvas, then it paints its child, and then, after painting its /// current canvas, then it paints its child, and then, after painting its
/// child, it asks its [foregroundPainter] to paint. The coodinate system of the /// child, it asks its [foregroundPainter] to paint. The coordinate system of the
/// canvas matches the coordinate system of the [CustomPaint] object. The /// canvas matches the coordinate system of the [CustomPaint] object. The
/// painters are expected to paint within a rectangle starting at the origin and /// painters are expected to paint within a rectangle starting at the origin and
/// encompassing a region of the given size. (If the painters paint outside /// encompassing a region of the given size. (If the painters paint outside
@ -837,7 +837,7 @@ class Transform extends SingleChildRenderObjectWidget {
} }
} }
/// A widget that can be targetted by a [CompositedTransformFollower]. /// A widget that can be targeted by a [CompositedTransformFollower].
/// ///
/// When this widget is composited during the compositing phase (which comes /// When this widget is composited during the compositing phase (which comes
/// after the paint phase, as described in [WidgetsBinding.drawFrame]), it /// after the paint phase, as described in [WidgetsBinding.drawFrame]), it
@ -1487,7 +1487,7 @@ class CustomMultiChildLayout extends MultiChildRenderObjectWidget {
/// * [FractionallySizedBox], a widget that sizes its child to a fraction of /// * [FractionallySizedBox], a widget that sizes its child to a fraction of
/// the total available space. /// the total available space.
/// * [AspectRatio], a widget that attempts to fit within the parent's /// * [AspectRatio], a widget that attempts to fit within the parent's
/// constraints while also sizing its child to match a given sapect ratio. /// constraints while also sizing its child to match a given aspect ratio.
/// * [FittedBox], which sizes and positions its child widget to fit the parent /// * [FittedBox], which sizes and positions its child widget to fit the parent
/// according to a given [BoxFit] discipline. /// according to a given [BoxFit] discipline.
/// * The [catalog of layout widgets](https://flutter.io/widgets/layout/). /// * The [catalog of layout widgets](https://flutter.io/widgets/layout/).
@ -1726,7 +1726,7 @@ class FractionallySizedBox extends SingleChildRenderObjectWidget {
/// If non-null, the fraction of the incoming width given to the child. /// If non-null, the fraction of the incoming width given to the child.
/// ///
/// If non-null, the child is given a tight width constraint that is the max /// If non-null, the child is given a tight width constraint that is the max
/// incoming width constraint multipled by this factor. /// incoming width constraint multiplied by this factor.
/// ///
/// If null, the incoming width constraints are passed to the child /// If null, the incoming width constraints are passed to the child
/// unmodified. /// unmodified.
@ -1735,7 +1735,7 @@ class FractionallySizedBox extends SingleChildRenderObjectWidget {
/// If non-null, the fraction of the incoming height given to the child. /// If non-null, the fraction of the incoming height given to the child.
/// ///
/// If non-null, the child is given a tight height constraint that is the max /// If non-null, the child is given a tight height constraint that is the max
/// incoming height constraint multipled by this factor. /// incoming height constraint multiplied by this factor.
/// ///
/// If null, the incoming height constraints are passed to the child /// If null, the incoming height constraints are passed to the child
/// unmodified. /// unmodified.
@ -3768,7 +3768,7 @@ class Wrap extends MultiChildRenderObjectWidget {
/// How the children within a run should be places in the main axis. /// How the children within a run should be places in the main axis.
/// ///
/// For example, if [alignment] is [WrapAlignment.center], the children in /// For example, if [alignment] is [WrapAlignment.center], the children in
/// each run are grouped togeter in the center of their run in the main axis. /// each run are grouped together in the center of their run in the main axis.
/// ///
/// Defaults to [WrapAlignment.start]. /// Defaults to [WrapAlignment.start].
/// ///
@ -3796,7 +3796,7 @@ class Wrap extends MultiChildRenderObjectWidget {
/// How the runs themselves should be placed in the cross axis. /// How the runs themselves should be placed in the cross axis.
/// ///
/// For example, if [runAlignment] is [WrapAlignment.center], the runs are /// For example, if [runAlignment] is [WrapAlignment.center], the runs are
/// grouped togeter in the center of the overall [Wrap] in the cross axis. /// grouped together in the center of the overall [Wrap] in the cross axis.
/// ///
/// Defaults to [WrapAlignment.start]. /// Defaults to [WrapAlignment.start].
/// ///
@ -4047,7 +4047,7 @@ class Flow extends MultiChildRenderObjectWidget {
class RichText extends LeafRenderObjectWidget { class RichText extends LeafRenderObjectWidget {
/// Creates a paragraph of rich text. /// Creates a paragraph of rich text.
/// ///
/// The [text], [textAlign], [softWrap], [overflow], nad [textScaleFactor] /// The [text], [textAlign], [softWrap], [overflow], and [textScaleFactor]
/// arguments must not be null. /// arguments must not be null.
/// ///
/// The [maxLines] property may be null (and indeed defaults to null), but if /// The [maxLines] property may be null (and indeed defaults to null), but if
@ -4087,7 +4087,7 @@ class RichText extends LeafRenderObjectWidget {
/// example, if the [text] is an English phrase followed by a Hebrew phrase, /// example, if the [text] is an English phrase followed by a Hebrew phrase,
/// in a [TextDirection.ltr] context the English phrase will be on the left /// in a [TextDirection.ltr] context the English phrase will be on the left
/// and the Hebrew phrase to its right, while in a [TextDirection.rtl] /// and the Hebrew phrase to its right, while in a [TextDirection.rtl]
/// context, the English phrase will be on the right and the Hebrow phrase on /// context, the English phrase will be on the right and the Hebrew phrase on
/// its left. /// its left.
/// ///
/// Defaults to the ambient [Directionality], if any. If there is no ambient /// Defaults to the ambient [Directionality], if any. If there is no ambient

View File

@ -60,7 +60,7 @@ class TextEditingController extends ValueNotifier<TextEditingValue> {
TextEditingController({ String text }) TextEditingController({ String text })
: super(text == null ? TextEditingValue.empty : new TextEditingValue(text: text)); : super(text == null ? TextEditingValue.empty : new TextEditingValue(text: text));
/// Creates a controller for an editiable text field from an initial [TextEditingValue]. /// Creates a controller for an editable text field from an initial [TextEditingValue].
/// ///
/// This constructor treats a null [value] argument as if it were /// This constructor treats a null [value] argument as if it were
/// [TextEditingValue.empty]. /// [TextEditingValue.empty].
@ -221,7 +221,7 @@ class EditableText extends StatefulWidget {
/// example, if the text is an English phrase followed by a Hebrew phrase, /// example, if the text is an English phrase followed by a Hebrew phrase,
/// in a [TextDirection.ltr] context the English phrase will be on the left /// in a [TextDirection.ltr] context the English phrase will be on the left
/// and the Hebrew phrase to its right, while in a [TextDirection.rtl] /// and the Hebrew phrase to its right, while in a [TextDirection.rtl]
/// context, the English phrase will be on the right and the Hebrow phrase on /// context, the English phrase will be on the right and the Hebrew phrase on
/// its left. /// its left.
/// ///
/// Defaults to the ambient [Directionality], if any. /// Defaults to the ambient [Directionality], if any.

View File

@ -710,7 +710,7 @@ abstract class StatelessWidget extends Widget {
/// ///
/// The second category is widgets that use [State.setState] or depend on /// The second category is widgets that use [State.setState] or depend on
/// [InheritedWidget]s. These will typically rebuild many times during the /// [InheritedWidget]s. These will typically rebuild many times during the
/// application's lifetime, and it is therefore important to minimise the impact /// application's lifetime, and it is therefore important to minimize the impact
/// of rebuilding such a widget. (They may also use [State.initState] or /// of rebuilding such a widget. (They may also use [State.initState] or
/// [State.didChangeDependencies] and allocate resources, but the important part /// [State.didChangeDependencies] and allocate resources, but the important part
/// is that they rebuild.) /// is that they rebuild.)
@ -948,7 +948,7 @@ typedef void StateSetter(VoidCallback fn);
/// releasing most resources until the framework calls their [dispose] /// releasing most resources until the framework calls their [dispose]
/// method. /// method.
/// * If the framework does not reinsert this subtree by the end of the current /// * If the framework does not reinsert this subtree by the end of the current
/// animation frame, the framework will call [dispose], which indiciates that /// animation frame, the framework will call [dispose], which indicates that
/// this [State] object will never build again. Subclasses should override /// this [State] object will never build again. Subclasses should override
/// this method to release any resources retained by this object (e.g., /// this method to release any resources retained by this object (e.g.,
/// stop any active animations). /// stop any active animations).
@ -2682,7 +2682,7 @@ abstract class Element extends DiagnosticableTree implements BuildContext {
/// or the child that was passed in, if it just had to update the child, or /// or the child that was passed in, if it just had to update the child, or
/// null, if it removed the child and did not replace it. /// null, if it removed the child and did not replace it.
/// ///
/// The following table summarises the above: /// The following table summarizes the above:
/// ///
/// <table> /// <table>
/// <tr><th><th>`newWidget == null`<th>`newWidget != null` /// <tr><th><th>`newWidget == null`<th>`newWidget != null`
@ -3915,7 +3915,7 @@ class ParentDataElement<T extends RenderObjectWidget> extends ProxyElement {
/// descendant). /// descendant).
/// ///
/// * Paint is currently under way, but the [ParentData] in question does not /// * Paint is currently under way, but the [ParentData] in question does not
/// affect layour or paint, and the value to be applied could not be /// affect layout or paint, and the value to be applied could not be
/// determined before paint (e.g. it depends on the compositing phase). /// determined before paint (e.g. it depends on the compositing phase).
/// ///
/// In either case, the next build is expected to cause this element to be /// In either case, the next build is expected to cause this element to be
@ -4251,7 +4251,7 @@ abstract class RenderObjectElement extends Element {
/// checks whether the child is in `forgottenChildren`. If it is, the function /// checks whether the child is in `forgottenChildren`. If it is, the function
/// acts as if the child was not in `oldChildren`. /// acts as if the child was not in `oldChildren`.
/// ///
/// This function is a convienence wrapper around [updateChild], which updates /// This function is a convenience wrapper around [updateChild], which updates
/// each individual child. When calling [updateChild], this function uses the /// each individual child. When calling [updateChild], this function uses the
/// previous element as the `newSlot` argument. /// previous element as the `newSlot` argument.
@protected @protected

View File

@ -30,7 +30,7 @@ export 'package:flutter/services.dart' show
/// ///
/// If this is not called from a build method, then it should be reinvoked /// If this is not called from a build method, then it should be reinvoked
/// whenever the dependencies change, e.g. by calling it from /// whenever the dependencies change, e.g. by calling it from
/// [State.didChangeDependencies], so that any changes in the environement are /// [State.didChangeDependencies], so that any changes in the environment are
/// picked up (e.g. if the device pixel ratio changes). /// picked up (e.g. if the device pixel ratio changes).
/// ///
/// See also: /// See also:

View File

@ -157,7 +157,7 @@ abstract class Route<T> {
/// This route's previous route has changed to the given new route. This is /// This route's previous route has changed to the given new route. This is
/// called on a route whenever the previous route changes for any reason, so /// called on a route whenever the previous route changes for any reason, so
/// long as it is in the history, except for immediately after the route has /// long as it is in the history, except for immediately after the route has
/// been pushed (in which wase [didPush] or [didReplace] will be called /// been pushed (in which case [didPush] or [didReplace] will be called
/// instead). `previousRoute` will be null if there's no previous route. /// instead). `previousRoute` will be null if there's no previous route.
@protected @protected
@mustCallSuper @mustCallSuper
@ -207,7 +207,7 @@ abstract class Route<T> {
/// ///
/// If a later route is entirely opaque, then the route will be active but not /// If a later route is entirely opaque, then the route will be active but not
/// rendered. It is even possible for the route to be active but for the stateful /// rendered. It is even possible for the route to be active but for the stateful
/// widgets within the route to not be instatiated. See [ModalRoute.maintainState]. /// widgets within the route to not be instantiated. See [ModalRoute.maintainState].
bool get isActive { bool get isActive {
return _navigator != null && _navigator._history.contains(this); return _navigator != null && _navigator._history.contains(this);
} }

View File

@ -66,7 +66,7 @@ Widget _defaultTransitionsBuilder(BuildContext context, Animation<double> animat
/// Callers must define the [pageBuilder] function which creates the route's /// Callers must define the [pageBuilder] function which creates the route's
/// primary contents. To add transitions define the [transitionsBuilder] function. /// primary contents. To add transitions define the [transitionsBuilder] function.
class PageRouteBuilder<T> extends PageRoute<T> { class PageRouteBuilder<T> extends PageRoute<T> {
/// Creates a route that deletates to builder callbacks. /// Creates a route that delegates to builder callbacks.
/// ///
/// The [pageBuilder], [transitionsBuilder], [opaque], [barrierDismissible], /// The [pageBuilder], [transitionsBuilder], [opaque], [barrierDismissible],
/// and [maintainState] arguments must not be null. /// and [maintainState] arguments must not be null.

View File

@ -57,7 +57,7 @@ class PerformanceOverlay extends LeafRenderObjectWidget {
/// is suitable for capturing an SkPicture trace 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 /// 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 /// rendered by the rasterizer within the frame boundary (and hence caused
/// jank), specify 1. Specifying 2 will trace all pictures that took more /// jank), specify 1. Specifying 2 will trace all pictures that took more
/// more than 2 frame intervals to render. Adjust this value to only capture /// more than 2 frame intervals to render. Adjust this value to only capture
/// the particularly expensive pictures while skipping the others. Specifying /// the particularly expensive pictures while skipping the others. Specifying

View File

@ -19,7 +19,7 @@ import 'ticker_provider.dart';
/// A backend for a [ScrollActivity]. /// A backend for a [ScrollActivity].
/// ///
/// Used by subclases of [ScrollActivity] to manipulate the scroll view that /// Used by subclasses of [ScrollActivity] to manipulate the scroll view that
/// they are acting upon. /// they are acting upon.
/// ///
/// See also: /// See also:

View File

@ -81,7 +81,7 @@ class ScrollBehavior {
/// Controls how [Scrollable] widgets behave in a subtree. /// Controls how [Scrollable] widgets behave in a subtree.
/// ///
/// The scroll configuration determines the [ScrollPhysics] and viewport /// The scroll configuration determines the [ScrollPhysics] and viewport
/// decorations used by decendants of [child]. /// decorations used by descendants of [child].
class ScrollConfiguration extends InheritedWidget { class ScrollConfiguration extends InheritedWidget {
/// Creates a widget that controls how [Scrollable] widgets behave in a subtree. /// Creates a widget that controls how [Scrollable] widgets behave in a subtree.
/// ///
@ -92,7 +92,7 @@ class ScrollConfiguration extends InheritedWidget {
@required Widget child, @required Widget child,
}) : super(key: key, child: child); }) : super(key: key, child: child);
/// How [Scrollable] widgets that are decendants of [child] should behave. /// How [Scrollable] widgets that are descendants of [child] should behave.
final ScrollBehavior behavior; final ScrollBehavior behavior;
/// The [ScrollBehavior] for [Scrollable] widgets in the given [BuildContext]. /// The [ScrollBehavior] for [Scrollable] widgets in the given [BuildContext].

View File

@ -49,7 +49,7 @@ abstract class ScrollContext {
/// ///
/// For example, if the scroll position is being driven by an animation, it /// For example, if the scroll position is being driven by an animation, it
/// might be appropriate to set this value to ignore pointer events to /// might be appropriate to set this value to ignore pointer events to
/// prevent the user from accidentially interacting with the contents of the /// prevent the user from accidentally interacting with the contents of the
/// widget as it animates. The user will still be able to touch the widget, /// widget as it animates. The user will still be able to touch the widget,
/// potentially stopping the animation. /// potentially stopping the animation.
void setIgnorePointer(bool value); void setIgnorePointer(bool value);

View File

@ -245,7 +245,7 @@ class ScrollEndNotification extends ScrollNotification {
/// If a drag ends with some residual velocity, a typical [ScrollPhysics] will /// If a drag ends with some residual velocity, a typical [ScrollPhysics] will
/// start a ballistic scroll, which delays the [ScrollEndNotification] until /// start a ballistic scroll, which delays the [ScrollEndNotification] until
/// the ballistic simulation completes, at which time [dragDetails] will /// the ballistic simulation completes, at which time [dragDetails] will
/// be null. If the residtual velocity is too small to trigger ballistic /// be null. If the residual velocity is too small to trigger ballistic
/// scrolling, then the [ScrollEndNotification] will be dispatched immediately /// scrolling, then the [ScrollEndNotification] will be dispatched immediately
/// and [dragDetails] will be non-null. /// and [dragDetails] will be non-null.
final DragEndDetails dragDetails; final DragEndDetails dragDetails;
@ -288,7 +288,7 @@ class UserScrollNotification extends ScrollNotification {
typedef bool ScrollNotificationPredicate(ScrollNotification notification); typedef bool ScrollNotificationPredicate(ScrollNotification notification);
/// A [ScrollNotificationPredicate] that checks whether /// A [ScrollNotificationPredicate] that checks whether
/// `notification.depth == 0`, which means that the notification diid not bubble /// `notification.depth == 0`, which means that the notification did not bubble
/// through any intervening scrolling widgets. /// through any intervening scrolling widgets.
bool defaultScrollNotificationPredicate(ScrollNotification notification) { bool defaultScrollNotificationPredicate(ScrollNotification notification) {
return notification.depth == 0; return notification.depth == 0;

View File

@ -130,7 +130,7 @@ class ScrollPhysics {
return parent.applyBoundaryConditions(position, value); return parent.applyBoundaryConditions(position, value);
} }
/// Returns a simulation for ballisitic scrolling starting from the given /// Returns a simulation for ballistic scrolling starting from the given
/// position with the given velocity. /// position with the given velocity.
/// ///
/// This is used by [ScrollPositionWithSingleContext] in the /// This is used by [ScrollPositionWithSingleContext] in the

View File

@ -374,7 +374,7 @@ abstract class ScrollPosition extends ViewportOffset with ScrollMetrics {
/// Called whenever the scroll position or the dimensions of the scroll view /// Called whenever the scroll position or the dimensions of the scroll view
/// change to schedule an update of the available semantics actions. The /// change to schedule an update of the available semantics actions. The
/// actual update will be performed in the nxt frame. If non is pending /// actual update will be performed in the next frame. If non is pending
/// a frame will be scheduled. /// a frame will be scheduled.
/// ///
/// For example: If the scroll view has been scrolled all the way to the top, /// For example: If the scroll view has been scrolled all the way to the top,

View File

@ -30,7 +30,7 @@ import 'scroll_position.dart';
/// See also: /// See also:
/// ///
/// * [ScrollPosition], which defines the underlying model for a position /// * [ScrollPosition], which defines the underlying model for a position
/// within a [Scrollable] but is agnositic as to how that position is /// within a [Scrollable] but is agnostic as to how that position is
/// changed. /// changed.
/// * [ScrollView] and its subclasses such as [ListView], which use /// * [ScrollView] and its subclasses such as [ListView], which use
/// [ScrollPositionWithSingleContext] to manage their scroll position. /// [ScrollPositionWithSingleContext] to manage their scroll position.

View File

@ -72,7 +72,7 @@ class BouncingScrollSimulation extends Simulation {
assert(_springTime != null); assert(_springTime != null);
} }
/// The maximum velocity that can be transfered from the inertia of a ballistic /// The maximum velocity that can be transferred from the inertia of a ballistic
/// scroll into overscroll. /// scroll into overscroll.
static const double maxSpringTransferVelocity = 5000.0; static const double maxSpringTransferVelocity = 5000.0;

View File

@ -27,7 +27,7 @@ import 'viewport.dart';
/// various scrolling effects, such as lists, grids, and expanding headers. /// various scrolling effects, such as lists, grids, and expanding headers.
/// ///
/// [ScrollView] helps orchestrate these pieces by creating the [Scrollable] and /// [ScrollView] helps orchestrate these pieces by creating the [Scrollable] and
/// the viewport and defering to its subclass to create the slivers. /// the viewport and deferring to its subclass to create the slivers.
/// ///
/// To control the initial scroll offset of the scroll view, provide a /// To control the initial scroll offset of the scroll view, provide a
/// [controller] with its [ScrollController.initialScrollOffset] property set. /// [controller] with its [ScrollController.initialScrollOffset] property set.
@ -171,7 +171,7 @@ abstract class ScrollView extends StatelessWidget {
/// concrete [AxisDirection]. /// concrete [AxisDirection].
/// ///
/// If the [scrollDirection] is [Axis.horizontal], the ambient /// If the [scrollDirection] is [Axis.horizontal], the ambient
/// [Directionality] is also consided when selecting the concrete /// [Directionality] is also considered when selecting the concrete
/// [AxisDirection]. For example, if the ambient [Directionality] is /// [AxisDirection]. For example, if the ambient [Directionality] is
/// [TextDirection.rtl], then the non-reversed [AxisDirection] is /// [TextDirection.rtl], then the non-reversed [AxisDirection] is
/// [AxisDirection.left] and the reversed [AxisDirection] is /// [AxisDirection.left] and the reversed [AxisDirection] is

View File

@ -382,7 +382,7 @@ abstract class SliverMultiBoxAdaptorWidget extends RenderObjectWidget {
/// * [SliverFixedExtentList], which is more efficient for children with /// * [SliverFixedExtentList], which is more efficient for children with
/// the same extent in the main axis. /// the same extent in the main axis.
/// * [SliverPrototypeExtentList], which is similar to [SliverFixedExtentList] /// * [SliverPrototypeExtentList], which is similar to [SliverFixedExtentList]
/// except that it uses a prototype list item intead a pixel value to define /// except that it uses a prototype list item instead of a pixel value to define
/// the main axis extent of each item. /// the main axis extent of each item.
/// * [SliverGrid], which places its children in arbitrary positions. /// * [SliverGrid], which places its children in arbitrary positions.
class SliverList extends SliverMultiBoxAdaptorWidget { class SliverList extends SliverMultiBoxAdaptorWidget {
@ -434,7 +434,7 @@ class SliverList extends SliverMultiBoxAdaptorWidget {
/// See also: /// See also:
/// ///
/// * [SliverPrototypeExtentList], which is similar to [SliverFixedExtentList] /// * [SliverPrototypeExtentList], which is similar to [SliverFixedExtentList]
/// except that it uses a prototype list item intead a pixel value to define /// except that it uses a prototype list item instead of a pixel value to define
/// the main axis extent of each item. /// the main axis extent of each item.
/// * [SliverFillViewport], which determines the [itemExtent] based on /// * [SliverFillViewport], which determines the [itemExtent] based on
/// [SliverConstraints.viewportMainAxisExtent]. /// [SliverConstraints.viewportMainAxisExtent].
@ -505,7 +505,7 @@ class SliverFixedExtentList extends SliverMultiBoxAdaptorWidget {
/// * [SliverFixedExtentList], which places its children in a linear /// * [SliverFixedExtentList], which places its children in a linear
/// array with a fixed extent in the main axis. /// array with a fixed extent in the main axis.
/// * [SliverPrototypeExtentList], which is similar to [SliverFixedExtentList] /// * [SliverPrototypeExtentList], which is similar to [SliverFixedExtentList]
/// except that it uses a prototype list item intead a pixel value to define /// except that it uses a prototype list item instead of a pixel value to define
/// the main axis extent of each item. /// the main axis extent of each item.
class SliverGrid extends SliverMultiBoxAdaptorWidget { class SliverGrid extends SliverMultiBoxAdaptorWidget {
/// Creates a sliver that places multiple box children in a two dimensional /// Creates a sliver that places multiple box children in a two dimensional
@ -607,7 +607,7 @@ class SliverGrid extends SliverMultiBoxAdaptorWidget {
/// * [SliverFixedExtentList], which has a configurable /// * [SliverFixedExtentList], which has a configurable
/// [SliverFixedExtentList.itemExtent]. /// [SliverFixedExtentList.itemExtent].
/// * [SliverPrototypeExtentList], which is similar to [SliverFixedExtentList] /// * [SliverPrototypeExtentList], which is similar to [SliverFixedExtentList]
/// except that it uses a prototype list item intead a pixel value to define /// except that it uses a prototype list item instead of a pixel value to define
/// the main axis extent of each item. /// the main axis extent of each item.
/// * [SliverList], which does not require its children to have the same /// * [SliverList], which does not require its children to have the same
/// extent in the main axis. /// extent in the main axis.

View File

@ -20,7 +20,7 @@ import 'sliver.dart';
/// [SliverPrototypeExtentList] is more efficient than [SliverList] because /// [SliverPrototypeExtentList] is more efficient than [SliverList] because
/// [SliverPrototypeExtentList] does not need to lay out its children to obtain /// [SliverPrototypeExtentList] does not need to lay out its children to obtain
/// their extent along the main axis. It's a little more flexible than /// their extent along the main axis. It's a little more flexible than
/// [SliverFixedExtentList] because there's no need to determine the approriate /// [SliverFixedExtentList] because there's no need to determine the appropriate
/// item extent in pixels. /// item extent in pixels.
/// ///
/// See also: /// See also:

View File

@ -230,7 +230,7 @@ class Text extends StatelessWidget {
/// example, if the [data] is an English phrase followed by a Hebrew phrase, /// example, if the [data] is an English phrase followed by a Hebrew phrase,
/// in a [TextDirection.ltr] context the English phrase will be on the left /// in a [TextDirection.ltr] context the English phrase will be on the left
/// and the Hebrew phrase to its right, while in a [TextDirection.rtl] /// and the Hebrew phrase to its right, while in a [TextDirection.rtl]
/// context, the English phrase will be on the right and the Hebrow phrase on /// context, the English phrase will be on the right and the Hebrew phrase on
/// its left. /// its left.
/// ///
/// Defaults to the ambient [Directionality], if any. /// Defaults to the ambient [Directionality], if any.

View File

@ -160,7 +160,7 @@ class ScaleTransition extends AnimatedWidget {
/// painted v times its normal size. /// painted v times its normal size.
Animation<double> get scale => listenable; Animation<double> get scale => listenable;
/// The alignment of the origin of the coordainte system in which the scale /// The alignment of the origin of the coordinate system in which the scale
/// takes place, relative to the size of the box. /// takes place, relative to the size of the box.
/// ///
/// For example, to set the origin of the scale to bottom middle, you can use /// For example, to set the origin of the scale to bottom middle, you can use
@ -498,7 +498,7 @@ typedef Widget TransitionBuilder(BuildContext context, Widget child);
/// For simple cases without additional state, consider using /// For simple cases without additional state, consider using
/// [AnimatedWidget]. /// [AnimatedWidget].
/// ///
/// ## Performance optimisations /// ## Performance optimizations
/// ///
/// If your [builder] function contains a subtree that does not depend on the /// If your [builder] function contains a subtree that does not depend on the
/// animation, it's more efficient to build that subtree once instead of /// animation, it's more efficient to build that subtree once instead of

View File

@ -38,7 +38,7 @@ class RecordedInvocation {
/// A [Canvas] for tests that records its method calls. /// A [Canvas] for tests that records its method calls.
/// ///
/// This class can be used in conjuction with [TestRecordingPaintingContext] /// This class can be used in conjunction with [TestRecordingPaintingContext]
/// to record the [Canvas] method calls made by a renderer. For example: /// to record the [Canvas] method calls made by a renderer. For example:
/// ///
/// ```dart /// ```dart

View File

@ -175,7 +175,7 @@ class TestSemantics {
/// The transform from this node's coordinate system to its parent's coordinate system. /// The transform from this node's coordinate system to its parent's coordinate system.
/// ///
/// By default, the transform is null, which represents the identity /// By default, the transform is null, which represents the identity
/// transformation (i.e., that this node has the same coorinate system as its /// transformation (i.e., that this node has the same coordinate system as its
/// parent). /// parent).
final Matrix4 transform; final Matrix4 transform;

View File

@ -24,7 +24,7 @@ void restoreFileSystem() {
fs = const LocalFileSystem(); fs = const LocalFileSystem();
} }
/// Flutter Driver test ouputs directory. /// Flutter Driver test output directory.
/// ///
/// Tests should write any output files to this directory. Defaults to the path /// Tests should write any output files to this directory. Defaults to the path
/// set in the FLUTTER_TEST_OUTPUTS_DIR environment variable, or `build` if /// set in the FLUTTER_TEST_OUTPUTS_DIR environment variable, or `build` if

View File

@ -45,7 +45,7 @@ import 'widgets_localizations.dart';
/// * it - Italian /// * it - Italian
/// * ja - Japanese /// * ja - Japanese
/// * ps - Pashto /// * ps - Pashto
/// * pt - Portugese /// * pt - Portuguese
/// * ru - Russian /// * ru - Russian
/// * sd - Sindhi /// * sd - Sindhi
/// * ur - Urdu /// * ur - Urdu
@ -369,7 +369,7 @@ class GlobalMaterialLocalizations implements MaterialLocalizations {
/// A [LocalizationsDelegate] that uses [GlobalMaterialLocalizations.load] /// A [LocalizationsDelegate] that uses [GlobalMaterialLocalizations.load]
/// to create an instance of this class. /// to create an instance of this class.
/// ///
/// Most internationlized apps will use [GlobalMaterialLocalizations.delegates] /// Most internationalized apps will use [GlobalMaterialLocalizations.delegates]
/// as the value of [MaterialApp.localizationsDelegates] to include /// as the value of [MaterialApp.localizationsDelegates] to include
/// the localizations for both the material and widget libraries. /// the localizations for both the material and widget libraries.
static const LocalizationsDelegate<MaterialLocalizations> delegate = const _MaterialLocalizationsDelegate(); static const LocalizationsDelegate<MaterialLocalizations> delegate = const _MaterialLocalizationsDelegate();

View File

@ -103,7 +103,7 @@ abstract class TestWidgetsFlutterBinding extends BindingBase
/// This can be used to redirect console output from the framework, or to /// This can be used to redirect console output from the framework, or to
/// change the behavior of [debugPrint]. For example, /// change the behavior of [debugPrint]. For example,
/// [AutomatedTestWidgetsFlutterBinding] uses it to make [debugPrint] /// [AutomatedTestWidgetsFlutterBinding] uses it to make [debugPrint]
/// synchronous, disabling its normal throttling behaviour. /// synchronous, disabling its normal throttling behavior.
@protected @protected
DebugPrintCallback get debugPrintOverride => debugPrint; DebugPrintCallback get debugPrintOverride => debugPrint;
@ -212,13 +212,13 @@ abstract class TestWidgetsFlutterBinding extends BindingBase
}); });
} }
/// Convert the given point from the global coodinate system (as used by /// Convert the given point from the global coordinate system (as used by
/// pointer events from the device) to the coordinate system used by the /// pointer events from the device) to the coordinate system used by the
/// tests (an 800 by 600 window). /// tests (an 800 by 600 window).
Offset globalToLocal(Offset point) => point; Offset globalToLocal(Offset point) => point;
/// Convert the given point from the coordinate system used by the tests (an /// Convert the given point from the coordinate system used by the tests (an
/// 800 by 600 window) to the global coodinate system (as used by pointer /// 800 by 600 window) to the global coordinate system (as used by pointer
/// events from the device). /// events from the device).
Offset localToGlobal(Offset point) => point; Offset localToGlobal(Offset point) => point;
@ -1008,7 +1008,7 @@ class TestViewConfiguration extends ViewConfiguration {
/// Provides the transformation matrix that converts coordinates in the test /// Provides the transformation matrix that converts coordinates in the test
/// coordinate space to coordinates in logical pixels on the real display. /// coordinate space to coordinates in logical pixels on the real display.
/// ///
/// This is essenitally the same as [toMatrix] but ignoring the device pixel /// This is essentially the same as [toMatrix] but ignoring the device pixel
/// ratio. /// ratio.
/// ///
/// This is useful because pointers are described in logical pixels, as /// This is useful because pointers are described in logical pixels, as

View File

@ -320,7 +320,7 @@ class WidgetController {
/// To make tests more realistic, frames may be pumped during this time (using /// To make tests more realistic, frames may be pumped during this time (using
/// calls to [pump]). If the total duration is longer than `frameInterval`, /// calls to [pump]). If the total duration is longer than `frameInterval`,
/// then one frame is pumped each time that amount of time elapses while /// then one frame is pumped each time that amount of time elapses while
/// sending events, or each time an event is synthesised, whichever is rarer. /// sending events, or each time an event is synthesized, whichever is rarer.
/// ///
/// A fling is essentially a drag that ends at a particular speed. If you /// A fling is essentially a drag that ends at a particular speed. If you
/// just want to drag and end without a fling, use [dragFrom]. /// just want to drag and end without a fling, use [dragFrom].

View File

@ -213,7 +213,7 @@ class CommonFinders {
/// Searches a widget tree and returns nodes that match a particular /// Searches a widget tree and returns nodes that match a particular
/// pattern. /// pattern.
abstract class Finder { abstract class Finder {
/// Initialises a Finder. Used by subclasses to initialize the [skipOffstage] /// Initializes a Finder. Used by subclasses to initialize the [skipOffstage]
/// property. /// property.
Finder({ this.skipOffstage: true }); Finder({ this.skipOffstage: true });
@ -385,7 +385,7 @@ class _HitTestableFinder extends Finder {
/// Searches a widget tree and returns nodes that match a particular /// Searches a widget tree and returns nodes that match a particular
/// pattern. /// pattern.
abstract class MatchFinder extends Finder { abstract class MatchFinder extends Finder {
/// Initialises a predicate-based Finder. Used by subclasses to initialize the /// Initializes a predicate-based Finder. Used by subclasses to initialize the
/// [skipOffstage] property. /// [skipOffstage] property.
MatchFinder({ bool skipOffstage: true }) : super(skipOffstage: skipOffstage); MatchFinder({ bool skipOffstage: true }) : super(skipOffstage: skipOffstage);

View File

@ -449,7 +449,7 @@ class _EqualsIgnoringHashCodes extends Matcher {
/// Returns true if [c] represents a whitespace code unit. /// Returns true if [c] represents a whitespace code unit.
bool _isWhitespace(int c) => (c <= 0x000D && c >= 0x0009) || c == 0x0020; bool _isWhitespace(int c) => (c <= 0x000D && c >= 0x0009) || c == 0x0020;
/// Returns true if [c] represents a vertical line unicode line art code unit. /// Returns true if [c] represents a vertical line Unicode line art code unit.
/// ///
/// See [https://en.wikipedia.org/wiki/Box-drawing_character]. This method only /// See [https://en.wikipedia.org/wiki/Box-drawing_character]. This method only
/// specifies vertical line art code units currently used by Flutter line art. /// specifies vertical line art code units currently used by Flutter line art.

View File

@ -140,7 +140,7 @@ Directory getReplaySource(String dirname, String basename) {
/// Canonicalizes [path]. /// Canonicalizes [path].
/// ///
/// This function implements the behaviour of `canonicalize` from /// This function implements the behavior of `canonicalize` from
/// `package:path`. However, unlike the original, it does not change the ASCII /// `package:path`. However, unlike the original, it does not change the ASCII
/// case of the path. Changing the case can break hot reload in some situations, /// case of the path. Changing the case can break hot reload in some situations,
/// for an example see: https://github.com/flutter/flutter/issues/9539. /// for an example see: https://github.com/flutter/flutter/issues/9539.

View File

@ -28,7 +28,7 @@ abstract class PortScanner {
/// Returns an available port as close to [defaultPort] as possible. /// Returns an available port as close to [defaultPort] as possible.
/// ///
/// If [defaultPort] is available, this will return it. Otherwise, it will /// If [defaultPort] is available, this will return it. Otherwise, it will
/// search for an avaiable port close to [defaultPort]. If it cannot find one, /// search for an available port close to [defaultPort]. If it cannot find one,
/// it will return any available port. /// it will return any available port.
Future<int> findPreferredPort(int defaultPort) async { Future<int> findPreferredPort(int defaultPort) async {
int iterationCount = 0; int iterationCount = 0;

View File

@ -89,7 +89,7 @@ class AnsiTerminal {
return _broadcastStdInString; return _broadcastStdInString;
} }
/// Prompts the user to input a chraracter within the accepted list. /// Prompts the user to input a character within the accepted list.
/// Reprompts if inputted character is not in the list. /// Reprompts if inputted character is not in the list.
/// ///
/// `prompt` is the text displayed prior to waiting for user input each time. /// `prompt` is the text displayed prior to waiting for user input each time.

View File

@ -184,15 +184,15 @@ class SettingsFile {
/// ///
/// f47ac10b-58cc-4372-a567-0e02b2c3d479 /// f47ac10b-58cc-4372-a567-0e02b2c3d479
/// ///
/// The generated uuids are 128 bit numbers encoded in a specific string format. /// The generated UUIDs are 128 bit numbers encoded in a specific string format.
/// ///
/// For more information, see /// For more information, see
/// http://en.wikipedia.org/wiki/Universally_unique_identifier. /// http://en.wikipedia.org/wiki/Universally_unique_identifier.
class Uuid { class Uuid {
final Random _random = new Random(); final Random _random = new Random();
/// Generate a version 4 (random) uuid. This is a uuid scheme that only uses /// Generate a version 4 (random) UUID. This is a UUID scheme that only uses
/// random numbers as the source of the generated uuid. /// random numbers as the source of the generated UUID.
String generateV4() { String generateV4() {
// Generate xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx / 8-4-4-4-12. // Generate xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx / 8-4-4-4-12.
final int special = 8 + _random.nextInt(4); final int special = 8 + _random.nextInt(4);

View File

@ -389,7 +389,7 @@ abstract class DeviceLogReader {
@override @override
String toString() => name; String toString() => name;
/// Process ID of the app on the deivce. /// Process ID of the app on the device.
int appPid; int appPid;
} }

View File

@ -95,7 +95,7 @@ class IMobileDevice {
/// Starts `idevicesyslog` and returns the running process. /// Starts `idevicesyslog` and returns the running process.
Future<Process> startLogger() => runCommand(<String>['idevicesyslog']); Future<Process> startLogger() => runCommand(<String>['idevicesyslog']);
/// Captures a screenshot to the specified outputfile. /// Captures a screenshot to the specified outputFile.
Future<Null> takeScreenshot(File outputFile) { Future<Null> takeScreenshot(File outputFile) {
return runCheckedAsync(<String>['idevicescreenshot', outputFile.path]); return runCheckedAsync(<String>['idevicescreenshot', outputFile.path]);
} }

Some files were not shown because too many files have changed in this diff Show More