Skip to content

Commit e063f56

Browse files
authored
Fixed few typos (#141543)
I continued [my mission](flutter/flutter#141431) to find as many typos as I could. This time it's a smaller set than before. There is no need for issues since it's a typo fix.
1 parent b9aba43 commit e063f56

38 files changed

Lines changed: 52 additions & 52 deletions

.github/ISSUE_TEMPLATE/7_cherry_pick.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ body:
2626
label: PR Link
2727
description: >-
2828
Link to an open PR that cherrypick's this into the target release branch.
29-
The current branches can be found under release-caniddate-branch.version for [beta](https://github.com/flutter/flutter/blob/beta/bin/internal/release-candidate-branch.version) and [stable](https://github.com/flutter/flutter/blob/stable/bin/internal/release-candidate-branch.version)
29+
The current branches can be found under release-candidate-branch.version for [beta](https://github.com/flutter/flutter/blob/beta/bin/internal/release-candidate-branch.version) and [stable](https://github.com/flutter/flutter/blob/stable/bin/internal/release-candidate-branch.version)
3030
validations:
3131
required: true
3232
- type: textarea

dev/bots/custom_rules/no_stop_watches.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ class _StopwatchVisitor extends RecursiveAstVisitor<void> {
7070

7171
final Map<ClassElement, bool> _isStopwatchClassElementCache = <ClassElement, bool>{};
7272

73-
bool _checkIfImplementsStopwatchRecurively(ClassElement classElement) {
73+
bool _checkIfImplementsStopwatchRecursively(ClassElement classElement) {
7474
if (classElement.library.isDartCore) {
7575
return classElement.name == 'Stopwatch';
7676
}
@@ -80,11 +80,11 @@ class _StopwatchVisitor extends RecursiveAstVisitor<void> {
8080
});
8181
}
8282

83-
// The cached version, call this method instead of _checkIfImplementsStopwatchRecurively.
83+
// The cached version, call this method instead of _checkIfImplementsStopwatchRecursively.
8484
bool _implementsStopwatch(ClassElement classElement) {
8585
return classElement.library.isDartCore
8686
? classElement.name == 'Stopwatch'
87-
:_isStopwatchClassElementCache.putIfAbsent(classElement, () => _checkIfImplementsStopwatchRecurively(classElement));
87+
:_isStopwatchClassElementCache.putIfAbsent(classElement, () => _checkIfImplementsStopwatchRecursively(classElement));
8888
}
8989

9090
bool _isInternal(LibraryElement libraryElement) {

dev/tools/localization/bin/gen_subtag_registry.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import 'dart:io';
88
const String registry = 'https://www.iana.org/assignments/language-subtag-registry/language-subtag-registry';
99

1010
/// A script to generate a Dart cache of https://www.iana.org. This should be
11-
/// run occasionally. It was created since iana.org was found to be flakey.
11+
/// run occasionally. It was created since iana.org was found to be flaky.
1212
///
1313
/// To execute: dart gen_subtag_registry.dart > language_subtag_registry.dart
1414
Future<void> main() async {

packages/flutter/lib/src/material/checkbox.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ class Checkbox extends StatefulWidget {
393393
final bool isError;
394394

395395
/// {@template flutter.material.checkbox.semanticLabel}
396-
/// The semantic label for the checkobox that will be announced by screen readers.
396+
/// The semantic label for the checkbox that will be announced by screen readers.
397397
///
398398
/// This is announced in accessibility modes (e.g TalkBack/VoiceOver).
399399
///

packages/flutter/lib/src/material/input_decorator.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ const double _kFinalLabelScale = 0.75;
3333
// The default duration for hint fade in/out transitions.
3434
//
3535
// Animating hint is not mentioned in the Material specification.
36-
// The animation is kept for backard compatibility and a short duration
36+
// The animation is kept for backward compatibility and a short duration
3737
// is used to mitigate the UX impact.
3838
const Duration _kHintFadeTransitionDuration = Duration(milliseconds: 20);
3939

packages/flutter/lib/src/material/slider_theme.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1531,7 +1531,7 @@ mixin BaseSliderTrackShape {
15311531
final double trackTop = offset.dy + (parentBox.size.height - trackHeight) / 2;
15321532
final double trackRight = trackLeft + parentBox.size.width - math.max(thumbWidth, overlayWidth);
15331533
final double trackBottom = trackTop + trackHeight;
1534-
// If the parentBox'size less than slider's size the trackRight will be less than trackLeft, so switch them.
1534+
// If the parentBox's size less than slider's size the trackRight will be less than trackLeft, so switch them.
15351535
return Rect.fromLTRB(math.min(trackLeft, trackRight), trackTop, math.max(trackLeft, trackRight), trackBottom);
15361536
}
15371537
}
@@ -1830,7 +1830,7 @@ mixin BaseRangeSliderTrackShape {
18301830
final double trackTop = offset.dy + (parentBox.size.height - trackHeight) / 2;
18311831
final double trackRight = trackLeft + parentBox.size.width - math.max(thumbWidth, overlayWidth);
18321832
final double trackBottom = trackTop + trackHeight;
1833-
// If the parentBox'size less than slider's size the trackRight will be less than trackLeft, so switch them.
1833+
// If the parentBox's size less than slider's size the trackRight will be less than trackLeft, so switch them.
18341834
return Rect.fromLTRB(math.min(trackLeft, trackRight), trackTop, math.max(trackLeft, trackRight), trackBottom);
18351835
}
18361836
}

packages/flutter/lib/src/material/snack_bar.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ class SnackBarAction extends StatefulWidget {
116116
/// [SnackBarAction] is dismissed.
117117
final Color? disabledTextColor;
118118

119-
/// The button diabled background color. This color is shown after the
119+
/// The button disabled background color. This color is shown after the
120120
/// [SnackBarAction] is dismissed.
121121
///
122122
/// If not provided, defaults to [SnackBarThemeData.disabledActionBackgroundColor].

packages/flutter/lib/src/painting/image_provider.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -808,7 +808,7 @@ enum ResizeImagePolicy {
808808
/// If only one of `width` and `height` is non-null, then the output image
809809
/// will be scaled to the associated width or height, and the other dimension
810810
/// will take whatever value is needed to maintain the image's original aspect
811-
/// ratio. These cases are simnilar to [BoxFit.fitWidth] and
811+
/// ratio. These cases are similar to [BoxFit.fitWidth] and
812812
/// [BoxFit.fitHeight], respectively.
813813
///
814814
/// If [ResizeImage.allowUpscaling] is false (the default), the width and the

packages/flutter/lib/src/painting/text_painter.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ class _TextLayout {
276276
// color of the text is changed).
277277
//
278278
// The creator of this _TextLayout is also responsible for disposing this
279-
// object when it's no logner needed.
279+
// object when it's no longer needed.
280280
ui.Paragraph _paragraph;
281281

282282
/// Whether this layout has been invalidated and disposed.

packages/flutter/lib/src/rendering/paragraph.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1063,19 +1063,19 @@ class RenderParagraph extends RenderBox with ContainerRenderObjectMixin<RenderBo
10631063
super.describeSemanticsConfiguration(config);
10641064
_semanticsInfo = text.getSemanticsInformation();
10651065
bool needsAssembleSemanticsNode = false;
1066-
bool needsChildConfigrationsDelegate = false;
1066+
bool needsChildConfigurationsDelegate = false;
10671067
for (final InlineSpanSemanticsInformation info in _semanticsInfo!) {
10681068
if (info.recognizer != null) {
10691069
needsAssembleSemanticsNode = true;
10701070
break;
10711071
}
1072-
needsChildConfigrationsDelegate = needsChildConfigrationsDelegate || info.isPlaceholder;
1072+
needsChildConfigurationsDelegate = needsChildConfigurationsDelegate || info.isPlaceholder;
10731073
}
10741074

10751075
if (needsAssembleSemanticsNode) {
10761076
config.explicitChildNodes = true;
10771077
config.isSemanticBoundary = true;
1078-
} else if (needsChildConfigrationsDelegate) {
1078+
} else if (needsChildConfigurationsDelegate) {
10791079
config.childConfigurationsDelegate = _childSemanticsConfigurationsDelegate;
10801080
} else {
10811081
if (_cachedAttributedLabels == null) {

0 commit comments

Comments
 (0)