Skip to content

Commit 0259be9

Browse files
authored
Fix spelling errors in all the dartdocs. (flutter#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.
1 parent d5d2cdf commit 0259be9

103 files changed

Lines changed: 191 additions & 191 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

dev/devicelab/lib/framework/adb.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ abstract class DeviceDiscovery {
4444
///
4545
/// Returns the same device when called repeatedly (unlike
4646
/// [chooseWorkingDevice]). This is useful when you need to perform multiple
47-
/// perations on one.
47+
/// operations on one.
4848
Future<Device> get workingDevice;
4949

5050
/// Lists all available devices' IDs.

dev/devicelab/lib/tasks/microbenchmarks.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import 'package:flutter_devicelab/framework/framework.dart';
1313
import 'package:flutter_devicelab/framework/ios.dart';
1414
import 'package:flutter_devicelab/framework/utils.dart';
1515

16-
/// The maximum amount of time a single microbenchmarks is allowed to take.
16+
/// The maximum amount of time a single microbenchmark is allowed to take.
1717
const Duration _kBenchmarkTimeout = const Duration(minutes: 6);
1818

1919
/// Creates a device lab task that runs benchmarks in

examples/flutter_gallery/lib/demo/calculator/logic.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ class CalcExpression {
246246
/// Append a minus sign to the current expression and return a new expression
247247
/// representing the result. Returns null to indicate that it is not legal
248248
/// to append a minus sign in the current state. Depending on the current
249-
/// state the minus sign will be interpretted as either a leading negative
249+
/// state the minus sign will be interpreted as either a leading negative
250250
/// sign or a subtraction operation.
251251
CalcExpression appendMinus() {
252252
switch (state) {

examples/layers/rendering/touch_input.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ class RenderDots extends RenderBox {
4848
@override
4949
bool get sizedByParent => true;
5050

51-
/// By selecting the biggest value permitted by the incomming constraints
51+
/// By selecting the biggest value permitted by the incoming constraints
5252
/// during layout, this function makes this render object as large as
5353
/// possible (i.e., fills the entire screen).
5454
@override

packages/flutter/lib/src/animation/animation_controller.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ const Tolerance _kFlingTolerance = const Tolerance(
8585
/// }
8686
/// ```
8787
///
88-
/// ...which asynchnorously runs one animation, then runs another, then changes
88+
/// ...which asynchronously runs one animation, then runs another, then changes
8989
/// the state of the widget, without having to verify [State.mounted] is still
9090
/// true at each step, and without having to chain futures together explicitly.
9191
/// (This assumes that the controllers are created in [State.initState] and

packages/flutter/lib/src/animation/animations.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ abstract class AnimationWithParentMixin<T> {
156156
///
157157
/// A proxy animation is useful because the parent animation can be mutated. For
158158
/// example, one object can create a proxy animation, hand the proxy to another
159-
/// object, and then later change the animation from which the proxy receieves
159+
/// object, and then later change the animation from which the proxy receives
160160
/// its value.
161161
class ProxyAnimation extends Animation<double>
162162
with AnimationLazyListenerMixin, AnimationLocalListenersMixin, AnimationLocalStatusListenersMixin {

packages/flutter/lib/src/animation/curves.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ class Cubic extends Curve {
247247

248248
/// A curve that is the reversed inversion of its given curve.
249249
///
250-
/// This curve evalutes the given curve in reverse (i.e., from 1.0 to 0.0 as t
250+
/// This curve evaluates the given curve in reverse (i.e., from 1.0 to 0.0 as t
251251
/// increases from 0.0 to 1.0) and returns the inverse of the given curve's value
252252
/// (i.e., 1.0 minus the given curve's value).
253253
///
@@ -534,17 +534,17 @@ class Curves {
534534
/// ![](https://flutter.github.io/assets-for-api-docs/animation/curve_bounce_in_out.png)
535535
static const Curve bounceInOut = const _BounceInOutCurve._();
536536

537-
/// An oscillating curve that grows in magnitude while overshootings its bounds.
537+
/// An oscillating curve that grows in magnitude while overshooting its bounds.
538538
///
539539
/// ![](https://flutter.github.io/assets-for-api-docs/animation/curve_elastic_in.png)
540540
static const ElasticInCurve elasticIn = const ElasticInCurve();
541541

542-
/// An oscillating curve that shrinks in magnitude while overshootings its bounds.
542+
/// An oscillating curve that shrinks in magnitude while overshooting its bounds.
543543
///
544544
/// ![](https://flutter.github.io/assets-for-api-docs/animation/curve_elastic_out.png)
545545
static const ElasticOutCurve elasticOut = const ElasticOutCurve();
546546

547-
/// An oscillating curve that grows and then shrinks in magnitude while overshootings its bounds.
547+
/// An oscillating curve that grows and then shrinks in magnitude while overshooting its bounds.
548548
///
549549
/// ![](https://flutter.github.io/assets-for-api-docs/animation/curve_elastic_in_out.png)
550550
static const ElasticInOutCurve elasticInOut = const ElasticInOutCurve();

packages/flutter/lib/src/cupertino/bottom_tab_bar.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ class CupertinoTabBar extends StatelessWidget implements PreferredSizeWidget {
187187
}
188188

189189
/// Create a clone of the current [CupertinoTabBar] but with provided
190-
/// parameters overriden.
190+
/// parameters overridden.
191191
CupertinoTabBar copyWith({
192192
Key key,
193193
List<BottomNavigationBarItem> items,

packages/flutter/lib/src/cupertino/route.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ class CupertinoPageRoute<T> extends PageRoute<T> {
200200
/// Begin dismissing this route from a horizontal swipe, if appropriate.
201201
///
202202
/// Swiping will be disabled if the page is a fullscreen dialog or if
203-
/// dismissals can be overriden because a [WillPopCallback] was
203+
/// dismissals can be overridden because a [WillPopCallback] was
204204
/// defined for the route.
205205
///
206206
/// When this method decides a pop gesture is appropriate, it returns a

packages/flutter/lib/src/foundation/change_notifier.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ abstract class Listenable {
3535
/// A class that can be extended or mixed in that provides a change notification
3636
/// API using [VoidCallback] for notifications.
3737
///
38-
/// [ChangeNotifier] is optimised for small numbers (one or two) of listeners.
38+
/// [ChangeNotifier] is optimized for small numbers (one or two) of listeners.
3939
/// It is O(N) for adding and removing listeners and O(N²) for dispatching
4040
/// notifications (where N is the number of listeners).
4141
///

0 commit comments

Comments
 (0)