Skip to content

Commit 140edb9

Browse files
authored
Fixed few typos (#147087)
Here's another PR with a couple of typos fixed. As you can see there was a typo in _fileReferenceI**n**dentifiers_, in class _ParsedProjectInfo._ Maybe we should do some check on that since I'm not sure if that property is used somewhere outside Flutter?
1 parent d737b7b commit 140edb9

File tree

25 files changed

+64
-64
lines changed

25 files changed

+64
-64
lines changed

dev/integration_tests/new_gallery/lib/studies/reply/waterfall_notched_rectangle.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class WaterfallNotchedRectangle extends NotchedShape {
4646
// A detailed explanation and the derivation of the formulas below is
4747
// available at: https://goo.gl/Ufzrqn
4848

49-
// s1, s2 are the two knobs controlling the behavior of the bezzier curve.
49+
// s1, s2 are the two knobs controlling the behavior of the bezier curve.
5050
const double s1 = 21.0;
5151
const double s2 = 6.0;
5252

dev/integration_tests/new_gallery/test_driver/transitions_perf_test.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ void main([List<String> args = const <String>[]]) {
250250
await driver.requestData('isTestingReplyOnly') == 'true';
251251

252252
if (args.contains('--with_semantics')) {
253-
stdout.writeln('Enabeling semantics...');
253+
stdout.writeln('Enabling semantics...');
254254
await driver.setSemantics(true);
255255
}
256256

examples/api/lib/material/text_button/text_button.0.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ class _TextButtonExampleState extends State<TextButtonExample> {
103103

104104
// This gradient's appearance reflects the button's state.
105105
// Always return a gradient decoration so that AnimatedContainer
106-
// can interpolorate in between. Used by TextButton #7.
106+
// can interpolate in between. Used by TextButton #7.
107107
Decoration? statesToDecoration(Set<MaterialState> states) {
108108
if (states.contains(MaterialState.pressed)) {
109109
return BoxDecoration(

examples/api/test/material/dropdown_menu/dropdown_menu.2_test.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import 'package:flutter_api_samples/material/dropdown_menu/dropdown_menu.2.dart'
1010
import 'package:flutter_test/flutter_test.dart';
1111

1212
void main() {
13-
testWidgets('DropdownMenu cursor behavoir', (WidgetTester tester) async {
13+
testWidgets('DropdownMenu cursor behavior', (WidgetTester tester) async {
1414
await tester.pumpWidget(
1515
const example.DropdownMenuApp(),
1616
);

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import 'input_border.dart';
1919
/// See also:
2020
///
2121
/// * [WidgetState], a general non-Material version that can be used
22-
/// interchangebly with `MaterialState`. They functionally work the same,
22+
/// interchangeably with `MaterialState`. They functionally work the same,
2323
/// except [WidgetState] can be used outside of Material.
2424
/// * [MaterialStateProperty], an interface for objects that "resolve" to
2525
/// different values depending on a widget's material state.
@@ -59,7 +59,7 @@ typedef MaterialState = WidgetState;
5959
/// See also:
6060
///
6161
/// * [WidgetPropertyResolver], the non-Material form of `MaterialPropertyResolver`
62-
/// that can be used interchangably with `MaterialPropertyResolver.
62+
/// that can be used interchangeably with `MaterialPropertyResolver.
6363
@Deprecated(
6464
'Use WidgetPropertyResolver instead. '
6565
'Moved to the Widgets layer to make code available outside of Material. '
@@ -118,7 +118,7 @@ typedef MaterialPropertyResolver<T> = WidgetPropertyResolver<T>;
118118
/// See also
119119
///
120120
/// * [WidgetStateColor], the non-Material version that can be used
121-
/// interchangably with `MaterialStateColor`.
121+
/// interchangeably with `MaterialStateColor`.
122122
@Deprecated(
123123
'Use WidgetStateColor instead. '
124124
'Moved to the Widgets layer to make code available outside of Material. '

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1470,13 +1470,13 @@ class TextPainter {
14701470
.getBoxesForRange(graphemeRange.start, graphemeRange.end, boxHeightStyle: ui.BoxHeightStyle.strut);
14711471

14721472
if (boxes.isNotEmpty) {
1473-
final bool ahchorToLeft = switch (glyphInfo.writingDirection) {
1473+
final bool anchorToLeft = switch (glyphInfo.writingDirection) {
14741474
TextDirection.ltr => anchorToLeadingEdge,
14751475
TextDirection.rtl => !anchorToLeadingEdge,
14761476
};
1477-
final TextBox box = ahchorToLeft ? boxes.first : boxes.last;
1477+
final TextBox box = anchorToLeft ? boxes.first : boxes.last;
14781478
metrics = _LineCaretMetrics(
1479-
offset: Offset(ahchorToLeft ? box.left : box.right, box.top),
1479+
offset: Offset(anchorToLeft ? box.left : box.right, box.top),
14801480
writingDirection: box.direction,
14811481
);
14821482
} else {

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -984,7 +984,7 @@ extension type const BaselineOffset(double? offset) {
984984
///
985985
/// Subclasses do not own their own cache storage. Rather, their [memoize]
986986
/// implementation takes a `cacheStorage`. If a prior computation with the same
987-
/// input valus has already been memoized in `cacheStorage`, it returns the
987+
/// input values has already been memoized in `cacheStorage`, it returns the
988988
/// memoized value without running `computer`. Otherwise the method runs the
989989
/// `computer` to compute the return value, and caches the result to
990990
/// `cacheStorage`.
@@ -2046,7 +2046,7 @@ abstract class RenderBox extends RenderObject {
20462046
final double? baselineOffset = _computeIntrinsics(_CachedLayoutCalculation.baseline, (constraints, baseline), _computeDryBaseline).offset;
20472047
// This assert makes sure computeDryBaseline always gets called in debug mode,
20482048
// in case the computeDryBaseline implementation invokes debugCannotComputeDryLayout.
2049-
// This check should be skipped when debugCheckintIntrinsics is true to avoid
2049+
// This check should be skipped when debugCheckingIntrinsics is true to avoid
20502050
// slowing down the app significantly.
20512051
assert(RenderObject.debugCheckingIntrinsics || baselineOffset == computeDryBaseline(constraints, baseline));
20522052
return baselineOffset;
@@ -2194,7 +2194,7 @@ abstract class RenderBox extends RenderObject {
21942194
'${objectRuntimeType(renderBoxDoingDryBaseline, 'RenderBox')}.computeDryBaseline.'
21952195
'The computeDryBaseline method must not access '
21962196
'${renderBoxDoingDryBaseline == this ? "the RenderBox's own size" : "the size of its child"},'
2197-
"because it's established in peformLayout or peformResize using different BoxConstraints."
2197+
"because it's established in performLayout or performResize using different BoxConstraints."
21982198
);
21992199
assert(size == _size);
22002200
}

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ extension type const _AxisSize._(Size _size) {
4545
// The ascent and descent of a baseline-aligned child.
4646
//
4747
// Baseline-aligned children contributes to the cross axis extent of a [RenderFlex]
48-
// differently from chidren with other [CrossAxisAlignment]s.
48+
// differently from children with other [CrossAxisAlignment]s.
4949
extension type const _AscentDescent._((double ascent, double descent)? ascentDescent) {
5050
factory _AscentDescent({ required double? baselineOffset, required double crossSize }) {
5151
return baselineOffset == null ? none : _AscentDescent._((baselineOffset, crossSize - baselineOffset));
@@ -76,7 +76,7 @@ class _LayoutSizes {
7676
final _AxisSize axisSize;
7777

7878
// The free space along the main axis. If the value is positive, the free space
79-
// will be distributed according to the [MainAxisAliggnment] specified. A
79+
// will be distributed according to the [MainAxisAlignment] specified. A
8080
// negative value indicates the RenderFlex overflows along the main axis.
8181
final double mainAxisFreeSpace;
8282

@@ -1060,7 +1060,7 @@ class RenderFlex extends RenderBox with ContainerRenderObjectMixin<RenderBox, Fl
10601060
final double? baselineOffset = sizes.baselineOffset;
10611061
assert(baselineOffset == null || (crossAxisAlignment == CrossAxisAlignment.baseline && direction == Axis.horizontal));
10621062

1063-
// Position all chilren in visual order: starting from the top-left child and
1063+
// Position all children in visual order: starting from the top-left child and
10641064
// work towards the child that's farthest away from the origin.
10651065
double childMainPosition = leadingSpace;
10661066
for (RenderBox? child = topLeftChild; child != null; child = nextChild(child)) {

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2045,7 +2045,7 @@ class _SelectableFragment with Selectable, Diagnosticable, ChangeNotifier implem
20452045
// [WidgetSpan]s.
20462046
//
20472047
// This method differs from [_updateSelectionStartEdgeByMultiSelectableBoundary]
2048-
// in that to mantain the origin text boundary selected at a placeholder,
2048+
// in that to maintain the origin text boundary selected at a placeholder,
20492049
// this selectable fragment must be aware of the [RenderParagraph] that closely
20502050
// encompasses the complete origin text boundary.
20512051
//
@@ -2229,7 +2229,7 @@ class _SelectableFragment with Selectable, Diagnosticable, ChangeNotifier implem
22292229
// [WidgetSpan]s.
22302230
//
22312231
// This method differs from [_updateSelectionEndEdgeByMultiSelectableBoundary]
2232-
// in that to mantain the origin text boundary selected at a placeholder, this
2232+
// in that to maintain the origin text boundary selected at a placeholder, this
22332233
// selectable fragment must be aware of the [RenderParagraph] that closely
22342234
// encompasses the complete origin text boundary.
22352235
//

packages/flutter/lib/src/widgets/overlay.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1929,7 +1929,7 @@ final class _OverlayEntryLocation extends LinkedListEntry<_OverlayEntryLocation>
19291929
//
19301930
// Generally, `assert(_debugIsLocationValid())` should be used to prevent
19311931
// invalid accesses to an invalid `_OverlayEntryLocation` object. Exceptions
1932-
// to this rule are _removeChild, _deactive, which will be called when the
1932+
// to this rule are _removeChild, _deactivate, which will be called when the
19331933
// OverlayPortal is being removed from the widget tree and may use the
19341934
// location information to perform cleanup tasks.
19351935
//

0 commit comments

Comments
 (0)