Fixed typos (#159331)

Here's another one of my PRs where I hunt for typos across `flutter`
repo.

## Pre-launch Checklist

- [x] I read the [Contributor Guide] and followed the process outlined
there for submitting PRs.
- [x] I read the [Tree Hygiene] wiki page, which explains my
responsibilities.
- [x] I read and followed the [Flutter Style Guide], including [Features
we expect every widget to implement].
- [x] I signed the [CLA].
- [ ] I listed at least one issue that this PR fixes in the description
above.
- [ ] I updated/added relevant documentation (doc comments with `///`).
- [ ] I added new tests to check the change I am making, or this PR is
[test-exempt].
- [x] All existing and new tests are passing.

<!-- Links -->
[Contributor Guide]:
https://github.com/flutter/flutter/wiki/Tree-hygiene#overview
[Tree Hygiene]: https://github.com/flutter/flutter/wiki/Tree-hygiene
[test-exempt]:
https://github.com/flutter/flutter/wiki/Tree-hygiene#tests
[Flutter Style Guide]:
https://github.com/flutter/flutter/wiki/Style-guide-for-Flutter-repo
[Features we expect every widget to implement]:
https://github.com/flutter/flutter/wiki/Style-guide-for-Flutter-repo#features-we-expect-every-widget-to-implement
[CLA]: https://cla.developers.google.com/
[flutter/tests]: https://github.com/flutter/tests
[breaking change policy]:
https://github.com/flutter/flutter/wiki/Tree-hygiene#handling-breaking-changes
[Discord]: https://github.com/flutter/flutter/wiki/Chat
This commit is contained in:
Anis Alibegić 2024-12-05 17:54:09 +01:00 committed by GitHub
parent c5132b52c2
commit e2ada1c939
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
59 changed files with 177 additions and 177 deletions

View File

@ -14,7 +14,7 @@ void main() {
expect(find.byType(ExpansionTile), findsExactly(3));
});
testWidgets('exapansion tile has one h1 tag', (WidgetTester tester) async {
testWidgets('expansion tile has one h1 tag', (WidgetTester tester) async {
await pumpsUseCase(tester, ExpansionTileUseCase());
final Finder findHeadingLevelOnes = find.bySemanticsLabel('ExpansionTile Demo');
await tester.pumpAndSettle();

View File

@ -127,8 +127,8 @@ Future<void> main() async {
final ArgResults results = parser.parse(mainArgs);
final List<String> selectedTests = results.multiOption('tests');
// Shuffle the tests becauase we don't want order dependent tests.
// It is the responsibily of the infra to tell us what the seed value is,
// Shuffle the tests because we don't want order dependent tests.
// It is the responsibility of the infra to tell us what the seed value is,
// in case we want to have the seed stable for some time period.
final List<Benchmark> tests = benchmarks.where((Benchmark e) => selectedTests.contains(e.$1)).toList();
tests.shuffle(Random(int.parse(results.option('seed')!)));

View File

@ -25,7 +25,7 @@ Future<void> execute() async {
final BenchmarkResultPrinter printer = BenchmarkResultPrinter();
void runNotifiyListenersLoopWithObserverList(
void runNotifyListenersLoopWithObserverList(
int totalIterations, {
bool failRemoval = false,
bool addResult = true,
@ -79,7 +79,7 @@ Future<void> execute() async {
}
}
void runNotifiyListenersLoopWithHashedObserverList(
void runNotifyListenersLoopWithHashedObserverList(
int totalIterations, {
bool addResult = true,
}) {
@ -124,7 +124,7 @@ Future<void> execute() async {
}
}
void runNotifiyListenersLoopWithAnimationController(
void runNotifyListenersLoopWithAnimationController(
int totalIterations, {
bool addResult = true,
}) {
@ -162,11 +162,11 @@ Future<void> execute() async {
}
}
runNotifiyListenersLoopWithObserverList(_kNumIterationsList);
runNotifiyListenersLoopWithObserverList(_kNumIterationsList,
runNotifyListenersLoopWithObserverList(_kNumIterationsList);
runNotifyListenersLoopWithObserverList(_kNumIterationsList,
failRemoval: true);
runNotifiyListenersLoopWithHashedObserverList(_kNumIterationsHashed);
runNotifiyListenersLoopWithAnimationController(_kNumIterationsHashed);
runNotifyListenersLoopWithHashedObserverList(_kNumIterationsHashed);
runNotifyListenersLoopWithAnimationController(_kNumIterationsHashed);
printer.printToStdout();
}

View File

@ -74,7 +74,7 @@ final List<String> flutterTestArgs = <String>[];
/// Whether execution should be simulated for debugging purposes.
///
/// When `true`, calls to [runCommand] print to [io.stdout] instead of running
/// the process. This is useful for determing what an invocation of `test.dart`
/// the process. This is useful for determining what an invocation of `test.dart`
/// _might_ due if not invoked with `--dry-run`, or otherwise determine what the
/// different test shards and sub-shards are configured as.
bool get dryRun => _dryRun ?? false;
@ -621,7 +621,7 @@ List<T> selectIndexOfTotalSubshard<T>(List<T> tests, {String subshardKey = kSubs
required int subShardCount,
}) {
// While there exists a closed formula figuring out the range of tests the
// subshard is resposible for, modeling this as a simulation of distributing
// subshard is responsible for, modeling this as a simulation of distributing
// items equally into buckets is more intuitive.
//
// A bucket represents how many tests a subshard should be allocated.

View File

@ -2042,7 +2042,7 @@ class MemoryTest {
await receivedNextMessage;
}
/// Taps the application and looks for acknowldgement.
/// Taps the application and looks for acknowledgement.
///
/// This is used by several tests to ensure scrolling gestures are installed.
Future<void> tapNotification() async {

View File

@ -11,7 +11,7 @@ import 'package:process/process.dart';
/// A minimal wrapper around the `adb` command-line tool.
@internal
class Adb {
const Adb._(this._prefixArgs, this._proccess);
const Adb._(this._prefixArgs, this._process);
/// Creates a new `adb` command runner that uses the `adb` command-line tool.
///
@ -41,7 +41,7 @@ class Adb {
}
Future<AdbStringResult> _runString(List<String> args) async {
final io.ProcessResult result = await _proccess.run(
final io.ProcessResult result = await _process.run(
<String>[
..._prefixArgs,
...args,
@ -55,7 +55,7 @@ class Adb {
}
Future<AdbBinaryResult> _runBinary(List<String> args) async {
final io.ProcessResult result = await _proccess.run(
final io.ProcessResult result = await _process.run(
<String>[
..._prefixArgs,
...args,
@ -70,7 +70,7 @@ class Adb {
}
final List<String> _prefixArgs;
final ProcessManager _proccess;
final ProcessManager _process;
/// Returns whether the device is currently connected.
///
@ -161,7 +161,7 @@ class Adb {
}
}
/// Disable confirnations for immersive mode.
/// Disable confirmations for immersive mode.
Future<void> disableImmersiveModeConfirmations() async {
final AdbStringResult result = await _runString(<String>[
'shell',

View File

@ -86,7 +86,7 @@ final class AndroidNativeDriver implements NativeDriver {
@override
Future<NativeScreenshot> screenshot() async {
// Indentical wait to what `FlutterDriver.screenshot` does.
// Identical wait to what `FlutterDriver.screenshot` does.
await _waitFor2s();
return _AdbScreencap(await _adb.screencap(), _tmpDir);
}

View File

@ -62,7 +62,7 @@ final class NativeResult extends Result {
Map<String, dynamic> toJson() => const <String, Object?>{};
}
/// An object that descrbes searching for _native_ elements.
/// An object that describes searching for _native_ elements.
sealed class NativeFinder {
const NativeFinder();

View File

@ -136,7 +136,7 @@ final class NaiveLocalFileComparator extends GoldenFileComparator {
// late NativeDriver nativeDriver;
/// Asserts that a [NativeScreenshot], [Future<NativeScreenshot>], or
/// [List<int>] matches the golden image file indentified by [key], with an
/// [List<int>] matches the golden image file identified by [key], with an
/// optional [version] number].
///
/// The [key] may be either a [Uri] or a [String] representation of a URL.
@ -151,7 +151,7 @@ final class NaiveLocalFileComparator extends GoldenFileComparator {
/// ## Golden File Testing
///
/// The term __golden file__ refers to a master image that is considered the
/// true renmdering of a given widget, state, application, or other visual
/// true rendering of a given widget, state, application, or other visual
/// representation you have chosen to capture.
///
/// The master golden image files are tested against can be created or updated

View File

@ -1079,7 +1079,7 @@ However, where possible avoid global constants. Rather than `kDefaultButtonColor
### Avoid abbreviations
Unless the abbreviation is more recognizable than the expansion (e.g. XML, HTTP, JSON), expand abbrevations
Unless the abbreviation is more recognizable than the expansion (e.g. XML, HTTP, JSON), expand abbreviations
when selecting a name for an identifier. In general, avoid one-character names unless one character is idiomatic
(for example, prefer `index` over `i`, but prefer `x` over `horizontalPosition`).

View File

@ -195,7 +195,7 @@ See below for instructions on bringing up test scaffolding in a plugin (*does no
1. Use of OCMock in new tests, especially Swift tests, is discouraged in favor of protocol-based
programming and dependency injection. However, if your XCTests require OCMock, open the
Package Dependencies section of the project in Xcode, and add the following dependency to
the RunnnerTests target:
the RunnerTests target:
```
https://github.com/erikdoe/ocmock

View File

@ -53,7 +53,7 @@ class _SliverAutoScrollExampleState extends State<SliverAutoScrollExample> {
// After an interactive scroll ends, if the alignedItem is partially visible
// at the top or bottom of the viewport, then auto-scroll so that it's
// completely visible. To accomodate mouse-wheel scrolls and other small
// completely visible. To accommodate mouse-wheel scrolls and other small
// adjustments, scrolls that change the scroll offset by less than
// the alignedItem's extent don't trigger an auto-scroll.
void maybeAutoScrollAlignedItem(RenderSliver alignedItem) {

View File

@ -56,7 +56,7 @@ class _IsScrollingListenerExampleState extends State<IsScrollingListenerExample>
}
// After an interactive scroll "ends", auto-scroll so that last item in the
// viewport is completely visible. To accomodate mouse-wheel scrolls, other small
// viewport is completely visible. To accommodate mouse-wheel scrolls, other small
// adjustments, and scrolling to the top, scrolls that put the scroll offset at
// zero or change the scroll offset by less than itemExtent don't trigger
// an auto-scroll.

View File

@ -45,7 +45,7 @@ class _SettingsAppBarExampleState extends State<SettingsAppBarExample> {
// The key must be for a widget _below_ a RenderSliver so that
// findAncestorRenderObjectOfType can find the RenderSliver when it searches
// the key widget's renderer ancesotrs.
// the key widget's renderer ancestors.
RenderSliver? keyToSliver(GlobalKey key) => key.currentContext?.findAncestorRenderObjectOfType<RenderSliver>();
// Each time the app's list scrolls: if the Title sliver has scrolled completely behind

View File

@ -15,7 +15,7 @@ void main() {
final double itemHeight = tester.getSize(find.widgetWithText(Card, 'Item 0.15')).height;
// The scroll view is 600 pixels high and the big orange
// "AlignedItem" is precedeed by 15 regular items. Scroll up enough
// "AlignedItem" is preceded by 15 regular items. Scroll up enough
// to make it partially visible.
await tester.drag(find.byType(CustomScrollView), Offset(0, 600 - 15.5 * itemHeight));
await tester.pumpAndSettle();

View File

@ -55,7 +55,7 @@ void main() {
});
// Regression test for https://github.com/flutter/flutter/issues/156806.
testWidgets('SingleActivator is used instead of LogiccalKeySet', (WidgetTester tester) async {
testWidgets('SingleActivator is used instead of LogicalKeySet', (WidgetTester tester) async {
await tester.pumpWidget(
const example.ShortcutsExampleApp(),
);

View File

@ -1280,7 +1280,7 @@ class _RenderSegmentedControl<T extends Object> extends RenderBox
for (int index = 0; index < children.length; index += 2) {
// Children contains both segment and separator and the order is segment ->
// separator -> segment. So to paint separators, indes should start from 0 and
// separator -> segment. So to paint separators, index should start from 0 and
// the step should be 2.
_paintChild(context, offset, children[index]);
}

View File

@ -44,7 +44,7 @@ const double _subHeaderHeight = 52.0;
const double _monthNavButtonsWidth = 108.0;
// 3.0 is the maximum scale factor on mobile phones. As of 07/30/24, iOS goes up
// to a max of 3.0 text sxale factor, and Android goes up to 2.0. This is the
// to a max of 3.0 text scale factor, and Android goes up to 2.0. This is the
// default used for non-range date pickers. This default is changed to a lower
// value at different parts of the date pickers depending on content, and device
// orientation.

View File

@ -556,7 +556,7 @@ abstract class PageTransitionsBuilder {
/// const constructors so that they can be used in const expressions.
const PageTransitionsBuilder();
/// Provideds a secondary transition to the previous route.
/// Provides a secondary transition to the previous route.
///
/// {@macro flutter.widgets.delegatedTransition}
DelegatedTransitionBuilder? get delegatedTransition => null;

View File

@ -566,7 +566,7 @@ class Slider extends StatefulWidget {
/// overlay shape, whichever is larger.
final EdgeInsetsGeometry? padding;
/// When true, the [Slider] will use the 2023 Material 3 esign appearance.
/// When true, the [Slider] will use the 2023 Material 3 design appearance.
///
/// Defaults to true. If false, the [Slider] will use the latest Material 3
/// Design appearance, which was introduced in December 2023.

View File

@ -1698,7 +1698,7 @@ class SemanticsProperties extends DiagnosticableTree {
/// * Buttons must respond to tap/click events produced via keyboard shortcuts.
/// * Text fields must become focused and editable, showing an on-screen
/// keyboard, if necessary.
/// * Checkboxes, switches, and radio buttons must become togglable using
/// * Checkboxes, switches, and radio buttons must become toggleable using
/// keyboard shortcuts.
///
/// Focus behavior is specific to the platform and to the assistive technology

View File

@ -1267,11 +1267,11 @@ mixin TextInputClient {
void performSelector(String selectorName) {}
}
/// An interface into iOS's stylus hadnwriting text input.
/// An interface into iOS's stylus handwriting text input.
///
/// See also:
///
/// * [Scribe], which provides similar functionality for Anroid.
/// * [Scribe], which provides similar functionality for Android.
/// * [UIIndirectScribbleInteraction](https://developer.apple.com/documentation/uikit/uiindirectscribbleinteraction),
/// which is iOS's API for Scribble.
abstract class ScribbleClient {

View File

@ -1762,7 +1762,7 @@ class EditableText extends StatefulWidget {
///
/// See also:
///
/// * [ScribbleClient], which can be mixed into an arbirtrary widget to
/// * [ScribbleClient], which can be mixed into an arbitrary widget to
/// provide iOS Scribble functionality.
/// * [Scribe], which can be used to interact with Android Scribe directly.
final bool stylusHandwritingEnabled;

View File

@ -2713,7 +2713,7 @@ final class BuildScope {
}
bool _debugAssertElementInScope(Element element, Element debugBuildRoot) {
final bool isInScope = element._debugIsDescsendantOf(debugBuildRoot)
final bool isInScope = element._debugIsDescendantOf(debugBuildRoot)
|| !element.debugIsActive;
if (isInScope) {
return true;
@ -3674,7 +3674,7 @@ abstract class Element extends DiagnosticableTree implements BuildContext {
});
}
bool _debugIsDescsendantOf(Element target) {
bool _debugIsDescendantOf(Element target) {
Element? element = this;
while (element != null && element.depth > target.depth) {
element = element._parent;
@ -5172,7 +5172,7 @@ abstract class Element extends DiagnosticableTree implements BuildContext {
if (owner!._debugBuilding) {
assert(owner!._debugCurrentBuildTarget != null);
assert(owner!._debugStateLocked);
if (_debugIsDescsendantOf(owner!._debugCurrentBuildTarget!)) {
if (_debugIsDescendantOf(owner!._debugCurrentBuildTarget!)) {
return true;
}
final List<DiagnosticsNode> information = <DiagnosticsNode>[

View File

@ -29,7 +29,7 @@ import 'media_query.dart';
/// {@tool snippet}
///
/// This example creates a blue box containing text that is sufficiently padded
/// to avoid instrusions by the operating system.
/// to avoid intrusions by the operating system.
///
/// ```dart
/// SafeArea(

View File

@ -1860,7 +1860,7 @@ class _SelectionHandleOverlayState extends State<_SelectionHandleOverlay> with S
/// Returns the bounding [Rect] of the text selection handle in local
/// coordinates.
///
/// When interacting with a text seletion handle through a touch event, the
/// When interacting with a text selection handle through a touch event, the
/// interactive area should be at least [kMinInteractiveDimension] square,
/// which this method does not consider.
Rect _getHandleRect(TextSelectionHandleType type, double preferredLineHeight) {

View File

@ -400,7 +400,7 @@ void main() {
expect(getHighlightedIndex(tester), null);
});
testWidgets('Disabled segment can be selected programmtically', (WidgetTester tester) async {
testWidgets('Disabled segment can be selected programmatically', (WidgetTester tester) async {
const Map<int, Widget> children = <int, Widget>{
0: Text('Child 1'),
1: Text('Child 2'),

View File

@ -1517,7 +1517,7 @@ void main() {
});
// Regression test for https://github.com/flutter/flutter/issues/152375.
testWidgets('Searching can hightlight entry after keyboard navigation while focused', (WidgetTester tester) async {
testWidgets('Searching can highlight entry after keyboard navigation while focused', (WidgetTester tester) async {
final ThemeData themeData = ThemeData();
await tester.pumpWidget(MaterialApp(
theme: themeData,

View File

@ -4744,7 +4744,7 @@ void main() {
// Test default track shape.
const Radius trackOuterCornerRadius = Radius.circular(8.0);
const Radius trackInnerCornderRadius = Radius.circular(2.0);
const Radius trackInnerCornerRadius = Radius.circular(2.0);
expect(
material,
paints
@ -4753,20 +4753,20 @@ void main() {
rrect: RRect.fromLTRBAndCorners(
24.0, 292.0, 356.4, 308.0,
topLeft: trackOuterCornerRadius,
topRight: trackInnerCornderRadius,
bottomRight: trackInnerCornderRadius,
topRight: trackInnerCornerRadius,
bottomRight: trackInnerCornerRadius,
bottomLeft: trackOuterCornerRadius,
),
color: activeTrackColor,
)
// Inctive track.
// Inactive track.
..rrect(
rrect: RRect.fromLTRBAndCorners(
368.4, 292.0, 776.0, 308.0,
topLeft: trackInnerCornderRadius,
topLeft: trackInnerCornerRadius,
topRight: trackOuterCornerRadius,
bottomRight: trackOuterCornerRadius,
bottomLeft: trackInnerCornderRadius,
bottomLeft: trackInnerCornerRadius,
),
color: inactiveTrackColor,
)

View File

@ -2671,7 +2671,7 @@ void main() {
// Test default track shape.
const Radius trackOuterCornerRadius = Radius.circular(8.0);
const Radius trackInnerCornderRadius = Radius.circular(2.0);
const Radius trackInnerCornerRadius = Radius.circular(2.0);
expect(
material,
paints
@ -2680,19 +2680,19 @@ void main() {
rrect: RRect.fromLTRBAndCorners(
24.0, 292.0, 400.0, 308.0,
topLeft: trackOuterCornerRadius,
topRight: trackInnerCornderRadius,
bottomRight: trackInnerCornderRadius,
topRight: trackInnerCornerRadius,
bottomRight: trackInnerCornerRadius,
bottomLeft: trackOuterCornerRadius,
),
)
// Inctive track.
// Inactive track.
..rrect(
rrect: RRect.fromLTRBAndCorners(
400.0, 292.0, 776.0, 308.0,
topLeft: trackInnerCornderRadius,
topLeft: trackInnerCornerRadius,
topRight: trackOuterCornerRadius,
bottomRight: trackOuterCornerRadius,
bottomLeft: trackInnerCornderRadius,
bottomLeft: trackInnerCornerRadius,
),
)
);
@ -2707,19 +2707,19 @@ void main() {
rrect: RRect.fromLTRBAndCorners(
24.0, 292.0, 390.0, 308.0,
topLeft: trackOuterCornerRadius,
topRight: trackInnerCornderRadius,
bottomRight: trackInnerCornderRadius,
topRight: trackInnerCornerRadius,
bottomRight: trackInnerCornerRadius,
bottomLeft: trackOuterCornerRadius,
),
)
// Inctive track.
// Inactive track.
..rrect(
rrect: RRect.fromLTRBAndCorners(
410.0, 292.0, 776.0, 308.0,
topLeft: trackInnerCornderRadius,
topLeft: trackInnerCornerRadius,
topRight: trackOuterCornerRadius,
bottomRight: trackOuterCornerRadius,
bottomLeft: trackInnerCornderRadius,
bottomLeft: trackInnerCornerRadius,
),
)
);

View File

@ -2488,7 +2488,7 @@ void main() {
expect(tabBarBox.size.height, 48.0);
// Ease in sine (accelerating).
double accelerateIntepolation(double fraction) {
double accelerateInterpolation(double fraction) {
return 1.0 - math.cos((fraction * math.pi) / 2.0);
}
@ -2499,8 +2499,8 @@ void main() {
}) {
const double indicatorWeight = 3.0;
final double tabChangeProgress = (controller.index - controller.animation!.value).abs();
final double leftFraction = accelerateIntepolation(tabChangeProgress);
final double rightFraction = accelerateIntepolation(tabChangeProgress);
final double leftFraction = accelerateInterpolation(tabChangeProgress);
final double rightFraction = accelerateInterpolation(tabChangeProgress);
final RRect rrect = RRect.fromLTRBAndCorners(
lerpDouble(rect.left, targetRect.left, leftFraction)!,
@ -7313,7 +7313,7 @@ void main() {
});
// This is a regression test for https://github.com/flutter/flutter/issues/150316.
testWidgets('Scrollable TabBar wuth transparent divider expands to full width', (WidgetTester tester) async {
testWidgets('Scrollable TabBar with transparent divider expands to full width', (WidgetTester tester) async {
Widget buildTabBar({ Color? dividerColor, TabAlignment? tabAlignment }) {
return boilerplate(
child: Center(
@ -7424,7 +7424,7 @@ void main() {
await tester.pumpAndSettle();
// Ease in sine (accelerating).
double accelerateIntepolation(double fraction) {
double accelerateInterpolation(double fraction) {
return 1.0 - math.cos((fraction * math.pi) / 2.0);
}
@ -7435,8 +7435,8 @@ void main() {
}) {
const double indicatorWeight = 3.0;
final double tabChangeProgress = (controller.index - controller.animation!.value).abs();
final double leftFraction = accelerateIntepolation(tabChangeProgress);
final double rightFraction = accelerateIntepolation(tabChangeProgress);
final double leftFraction = accelerateInterpolation(tabChangeProgress);
final double rightFraction = accelerateInterpolation(tabChangeProgress);
final RRect rrect = RRect.fromLTRBAndCorners(
lerpDouble(rect.left, targetRect.left, leftFraction)!,

View File

@ -153,7 +153,7 @@ void main() {
expect(checked, isTrue);
}, variant: KeySimulatorTransitModeVariant.all());
testWidgets('Title is not created if title is not passed and kIsweb', (WidgetTester tester) async {
testWidgets('Title is not created if title is not passed and kIsWeb', (WidgetTester tester) async {
await tester.pumpWidget(
WidgetsApp(
color: const Color(0xFF123456),

View File

@ -12844,7 +12844,7 @@ void main() {
selection: TextSelection.collapsed(offset: textAC.length),
);
bool isDeskop() {
bool isDesktop() {
return debugDefaultTargetPlatformOverride == TargetPlatform.macOS
|| debugDefaultTargetPlatformOverride == TargetPlatform.windows
|| debugDefaultTargetPlatformOverride == TargetPlatform.linux;
@ -13032,7 +13032,7 @@ void main() {
focusNode.requestFocus();
await tester.pump();
await waitForThrottling(tester);
expect(controller.value, isDeskop() ? textASelected : textACollapsedAtEnd);
expect(controller.value, isDesktop() ? textASelected : textACollapsedAtEnd);
// Insert some text.
await tester.enterText(find.byType(EditableText), textAB);
@ -13041,7 +13041,7 @@ void main() {
// Undo the insertion without waiting for the throttling delay.
await sendUndo(tester);
expect(controller.value.selection.isValid, true);
expect(controller.value, isDeskop() ? textASelected : textACollapsedAtEnd);
expect(controller.value, isDesktop() ? textASelected : textACollapsedAtEnd);
// On web, these keyboard shortcuts are handled by the browser.
}, variant: TargetPlatformVariant.all(), skip: kIsWeb); // [intended]
@ -13056,7 +13056,7 @@ void main() {
await tester.pump();
await sendUndo(tester);
await waitForThrottling(tester);
expect(controller.value, isDeskop() ? textASelected : textACollapsedAtEnd);
expect(controller.value, isDesktop() ? textASelected : textACollapsedAtEnd);
// Insert some text.
await tester.enterText(find.byType(EditableText), textAB);
@ -13066,7 +13066,7 @@ void main() {
await sendUndo(tester);
// Initial text should have been recorded and restored.
expect(controller.value, isDeskop() ? textASelected : textACollapsedAtEnd);
expect(controller.value, isDesktop() ? textASelected : textACollapsedAtEnd);
// On web, these keyboard shortcuts are handled by the browser.
}, variant: TargetPlatformVariant.all(), skip: kIsWeb); // [intended]

View File

@ -2424,11 +2424,11 @@ class _DummyMultiChildWidget extends Widget {
final List<Widget> children;
@override
Element createElement() => _DummyMuitiChildElement(this);
Element createElement() => _DummyMultiChildElement(this);
}
class _DummyMuitiChildElement extends Element {
_DummyMuitiChildElement(super.widget);
class _DummyMultiChildElement extends Element {
_DummyMultiChildElement(super.widget);
@override
bool get debugDoingBuild => throw UnimplementedError();

View File

@ -3267,7 +3267,7 @@ The provided ScrollController cannot be shared by multiple ScrollView widgets.''
// that begin in the center of the scrollable are handled by the
// scrollable, not the scrollbar. However: the scrollbar widget does
// contain the scrollable and this test verifies that it doesn't
// inadvertantly handle thumb down/start/update/end gestures due
// inadvertently handle thumb down/start/update/end gestures due
// to trackpad pan/zoom events. Those callbacks are prevented by
// the overrides of isPointerPanZoomAllowed in the scrollbar
// gesture recognizers.

View File

@ -320,7 +320,7 @@ void main() {
final Offset gPos = textOffsetToPosition(paragraph, testValue.indexOf('g'));
final Offset pPos = textOffsetToPosition(paragraph, testValue.indexOf('p'));
// A double tap + drag should take precendence over parent drags.
// A double tap + drag should take precedence over parent drags.
final TestGesture gesture = await tester.startGesture(gPos);
addTearDown(gesture.removePointer);
await tester.pump();
@ -382,7 +382,7 @@ void main() {
final Offset gPos = textOffsetToPosition(paragraph, testValue.indexOf('g'));
final Offset pPos = textOffsetToPosition(paragraph, testValue.indexOf('p'));
// A double tap + drag should take precendence over parent drags.
// A double tap + drag should take precedence over parent drags.
final TestGesture gesture = await tester.startGesture(gPos);
addTearDown(gesture.removePointer);
await tester.pump();
@ -4634,7 +4634,7 @@ void main() {
await gesture.up();
await tester.pumpAndSettle();
// Clear selection programatically.
// Clear selection programmatically.
state.clearSelection();
expect(paragraph1.selections, isEmpty);
expect(paragraph2.selections, isEmpty);

View File

@ -3593,7 +3593,7 @@ void main() {
final Offset gPos = textOffsetToPosition(tester, testValue.indexOf('g'));
final Offset pPos = textOffsetToPosition(tester, testValue.indexOf('p'));
// A double tap + drag should take precendence over parent drags.
// A double tap + drag should take precedence over parent drags.
final TestGesture gesture = await tester.startGesture(gPos);
await tester.pump();
await gesture.up();

View File

@ -996,7 +996,7 @@ class _TestWidgetInspectorService extends TestWidgetInspectorService {
),
);
// Intitially the exit select button is on the left.
// Initially the exit select button is on the left.
final Finder exitButton = buttonFinder('EXIT SELECT MODE');
expect(exitButton, findsOneWidget);
final Finder moveRightButton = buttonFinder('MOVE RIGHT');

View File

@ -58,7 +58,7 @@ class ScreenshotCommand extends Command {
/// base64 encode a PNG
class ScreenshotResult extends Result {
/// Consructs a screenshot result with PNG or raw RGBA byte data.
/// Constructs a screenshot result with PNG or raw RGBA byte data.
ScreenshotResult(this._data);
final Uint8List _data;

View File

@ -511,7 +511,7 @@ final RegExp _agpJavaError = RegExp(r'Android Gradle plugin requires Java (\d+\.
// Android Gradle Plugin handles the error here: http://shortn/_SgUWyRdywL.
// If we ever need to reference or check the thrown requirements,
// we can find the Java and Android Gradle Plugin compatability here:
// we can find the Java and Android Gradle Plugin compatibility here:
// 'https://developer.android.com/build/releases/past-releases'
@visibleForTesting
final GradleHandledError incompatibleJavaAndAgpVersionsHandler= GradleHandledError(

View File

@ -117,7 +117,7 @@ Future<Set<String>> computeExclusiveDevDependencies(
// Remove any listed dependency from dev dependencies; it might have been
// a dev dependency for the app (root) package, but it is being used as a
// real dependency for a dependend on package, so we would not want to send
// real dependency for a dependent on package, so we would not want to send
// a signal that the package can be ignored/removed.
devDependencies.removeAll(directDependencies);

View File

@ -53,7 +53,7 @@ Future<void> generateLocalizationsSyntheticPackage({
return;
}
} else if (featureFlags.isExplicitPackageDependenciesEnabled) {
// synthetic-packages: true was not set and it is no longer the defualt.
// synthetic-packages: true was not set and it is no longer the default.
return;
}

View File

@ -159,7 +159,7 @@ abstract class Pub {
/// Runs, parses, and returns `pub deps --json` for [project].
///
/// While it is guaranteed that, if succcessful, that the result are a valid
/// While it is guaranteed that, if successful, that the result are a valid
/// JSON object, the exact contents returned are _not_ validated, and are left
/// as a responsibility of the caller.
Future<Map<String, Object?>> deps(FlutterProject project);

View File

@ -1372,7 +1372,7 @@ String? _validatePlugin(Plugin plugin, String platformKey, {
if (_hasPluginInlineImpl(plugin, platformKey, pluginResolutionType: pluginResolutionType)) {
return 'Plugin ${plugin.name}:$platformKey which provides an inline implementation '
'cannot also reference a default implementation for $defaultImplPluginName. '
'Ask the maintainers of ${plugin.name} to either remove the implementation via `platforms: $platformKey:${pluginResolutionType == _PluginResolutionType.dart ? ' dartPluginClass' : '` `pluginClass` or `dartPLuginClass'}` '
'Ask the maintainers of ${plugin.name} to either remove the implementation via `platforms: $platformKey:${pluginResolutionType == _PluginResolutionType.dart ? ' dartPluginClass' : '` `pluginClass` or `dartPluginClass'}` '
'or avoid referencing a default implementation via `platforms: $platformKey: default_package: $defaultImplPluginName`.\n';
}
}

View File

@ -79,7 +79,7 @@ Future<DartBuildResult> runFlutterSpecificDartBuild({
required Uri projectUri,
required FileSystem fileSystem,
}) async {
final OS targetOS = getNativeOSFromTargetPlatfrorm(targetPlatform);
final OS targetOS = getNativeOSFromTargetPlatform(targetPlatform);
final Uri buildUri = nativeAssetsBuildUri(projectUri, targetOS);
final Directory buildDir = fileSystem.directory(buildUri);
@ -120,7 +120,7 @@ Future<void> installCodeAssets({
required FileSystem fileSystem,
required Uri nativeAssetsFileUri,
}) async {
final OS targetOS = getNativeOSFromTargetPlatfrorm(targetPlatform);
final OS targetOS = getNativeOSFromTargetPlatform(targetPlatform);
final Uri buildUri = nativeAssetsBuildUri(projectUri, targetOS);
final bool flutterTester = targetPlatform == build_info.TargetPlatform.tester;
final build_info.BuildMode buildMode = _getBuildMode(environmentDefines, flutterTester);
@ -807,7 +807,7 @@ Never _throwNativeAssetsLinkFailed() {
);
}
OS getNativeOSFromTargetPlatfrorm(build_info.TargetPlatform platform) {
OS getNativeOSFromTargetPlatform(build_info.TargetPlatform platform) {
switch (platform) {
case build_info.TargetPlatform.ios:
return OS.iOS;

View File

@ -54,7 +54,7 @@ Future<Uri?> testCompilerBuildNativeAssets(BuildInfo buildInfo) async {
// Only `flutter test` uses the
// `build/native_assets/<os>/native_assets.json` file which uses absolute
// paths to the shared libraries.
final OS targetOS = getNativeOSFromTargetPlatfrorm(TargetPlatform.tester);
final OS targetOS = getNativeOSFromTargetPlatform(TargetPlatform.tester);
final Uri buildUri = nativeAssetsBuildUri(projectUri, targetOS);
final Uri nativeAssetsFileUri = buildUri.resolve('native_assets.json');

View File

@ -503,7 +503,7 @@ class CocoaPods {
}
}
} else if (stdout.contains('unknown ISA `PBXFileSystemSynchronizedRootGroup`')) {
// CocoaPods must be at least verison 1.16.2 to handle synchronized
// CocoaPods must be at least version 1.16.2 to handle synchronized
// groups/folders https://github.com/CocoaPods/CocoaPods/issues/12456
_logger.printError(
'Error: Your Cocoapods might be out-of-date and unable to support synchronized groups/folders. '

View File

@ -51,22 +51,22 @@ class SwiftPackageManagerIntegrationMigration extends ProjectMigrator {
static const String _flutterPluginsSwiftPackageBuildFileIdentifier = '78A318202AECB46A00862997';
/// New identifier for FlutterGeneratedPluginSwiftPackage XCLocalSwiftPackageReference.
static const String _localFlutterPluginsSwiftPackageReferenceIdentifer = '781AD8BC2B33823900A9FFBB';
static const String _localFlutterPluginsSwiftPackageReferenceIdentifier = '781AD8BC2B33823900A9FFBB';
/// New identifier for FlutterGeneratedPluginSwiftPackage XCSwiftPackageProductDependency.
static const String _flutterPluginsSwiftPackageProductDependencyIdentifer = '78A3181F2AECB46A00862997';
static const String _flutterPluginsSwiftPackageProductDependencyIdentifier = '78A3181F2AECB46A00862997';
/// Existing iOS identifier for Runner PBXFrameworksBuildPhase.
static const String _iosRunnerFrameworksBuildPhaseIdentifer = '97C146EB1CF9000F007C117D';
static const String _iosRunnerFrameworksBuildPhaseIdentifier = '97C146EB1CF9000F007C117D';
/// Existing macOS identifier for Runner PBXFrameworksBuildPhase.
static const String _macosRunnerFrameworksBuildPhaseIdentifer = '33CC10EA2044A3C60003C045';
static const String _macosRunnerFrameworksBuildPhaseIdentifier = '33CC10EA2044A3C60003C045';
/// Existing iOS identifier for Runner PBXNativeTarget.
static const String _iosRunnerNativeTargetIdentifer = '97C146ED1CF9000F007C117D';
static const String _iosRunnerNativeTargetIdentifier = '97C146ED1CF9000F007C117D';
/// Existing macOS identifier for Runner PBXNativeTarget.
static const String _macosRunnerNativeTargetIdentifer = '33CC10EC2044A3C60003C045';
static const String _macosRunnerNativeTargetIdentifier = '33CC10EC2044A3C60003C045';
/// Existing iOS identifier for Runner PBXProject.
static const String _iosProjectIdentifier = '97C146E61CF9000F007C117D';
@ -78,16 +78,16 @@ class SwiftPackageManagerIntegrationMigration extends ProjectMigrator {
.directory(_xcodeProjectInfoFile.parent)
.childFile('project.pbxproj.backup');
String get _runnerFrameworksBuildPhaseIdentifer {
String get _runnerFrameworksBuildPhaseIdentifier {
return _platform == SupportedPlatform.ios
? _iosRunnerFrameworksBuildPhaseIdentifer
: _macosRunnerFrameworksBuildPhaseIdentifer;
? _iosRunnerFrameworksBuildPhaseIdentifier
: _macosRunnerFrameworksBuildPhaseIdentifier;
}
String get _runnerNativeTargetIdentifer {
String get _runnerNativeTargetIdentifier {
return _platform == SupportedPlatform.ios
? _iosRunnerNativeTargetIdentifer
: _macosRunnerNativeTargetIdentifer;
? _iosRunnerNativeTargetIdentifier
: _macosRunnerNativeTargetIdentifier;
}
String get _projectIdentifier {
@ -255,7 +255,7 @@ class SwiftPackageManagerIntegrationMigration extends ProjectMigrator {
// </BuildableReference>
final List<String> schemeLines = LineSplitter.split(schemeContent).toList();
final int index = schemeLines.indexWhere((String line) =>
line.contains('BlueprintIdentifier = "$_runnerNativeTargetIdentifer"'),
line.contains('BlueprintIdentifier = "$_runnerNativeTargetIdentifier"'),
);
if (index == -1 || index + 3 >= schemeLines.length) {
throw Exception(
@ -297,7 +297,7 @@ class SwiftPackageManagerIntegrationMigration extends ProjectMigrator {
<EnvironmentBuildable>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "$_runnerNativeTargetIdentifer"
BlueprintIdentifier = "$_runnerNativeTargetIdentifier"
$buildableName
$blueprintName
$referencedContainer
@ -421,10 +421,10 @@ $newContent
if (originalProjectContents.contains(_flutterPluginsSwiftPackageBuildFileIdentifier)) {
throw Exception('Duplicate id found for PBXBuildFile.');
}
if (originalProjectContents.contains(_flutterPluginsSwiftPackageProductDependencyIdentifer)) {
if (originalProjectContents.contains(_flutterPluginsSwiftPackageProductDependencyIdentifier)) {
throw Exception('Duplicate id found for XCSwiftPackageProductDependency.');
}
if (originalProjectContents.contains(_localFlutterPluginsSwiftPackageReferenceIdentifer)) {
if (originalProjectContents.contains(_localFlutterPluginsSwiftPackageReferenceIdentifier)) {
throw Exception('Duplicate id found for XCLocalSwiftPackageReference.');
}
}
@ -451,7 +451,7 @@ $newContent
}
const String newContent =
' $_flutterPluginsSwiftPackageBuildFileIdentifier /* FlutterGeneratedPluginSwiftPackage in Frameworks */ = {isa = PBXBuildFile; productRef = $_flutterPluginsSwiftPackageProductDependencyIdentifer /* FlutterGeneratedPluginSwiftPackage */; };';
' $_flutterPluginsSwiftPackageBuildFileIdentifier /* FlutterGeneratedPluginSwiftPackage in Frameworks */ = {isa = PBXBuildFile; productRef = $_flutterPluginsSwiftPackageProductDependencyIdentifier /* FlutterGeneratedPluginSwiftPackage */; };';
final (int _, int endSectionIndex) = _sectionRange('PBXBuildFile', lines);
@ -465,7 +465,7 @@ $newContent
}) {
final bool migrated = projectInfo.frameworksBuildPhases
.where((ParsedProjectFrameworksBuildPhase phase) =>
phase.identifier == _runnerFrameworksBuildPhaseIdentifer &&
phase.identifier == _runnerFrameworksBuildPhaseIdentifier &&
phase.files != null &&
phase.files!.contains(_flutterPluginsSwiftPackageBuildFileIdentifier))
.toList()
@ -493,7 +493,7 @@ $newContent
// Find index where Frameworks Build Phase for the Runner target begins.
final int runnerFrameworksPhaseStartIndex = lines.indexWhere(
(String line) => line.trim().startsWith(
'$_runnerFrameworksBuildPhaseIdentifer /* Frameworks */ = {',
'$_runnerFrameworksBuildPhaseIdentifier /* Frameworks */ = {',
),
startSectionIndex,
);
@ -509,7 +509,7 @@ $newContent
final ParsedProjectFrameworksBuildPhase? runnerFrameworksPhase = projectInfo
.frameworksBuildPhases
.where((ParsedProjectFrameworksBuildPhase phase) =>
phase.identifier == _runnerFrameworksBuildPhaseIdentifer)
phase.identifier == _runnerFrameworksBuildPhaseIdentifier)
.toList()
.firstOrNull;
if (runnerFrameworksPhase == null) {
@ -550,10 +550,10 @@ $newContent
}) {
final bool migrated = projectInfo.nativeTargets
.where((ParsedNativeTarget target) =>
target.identifier == _runnerNativeTargetIdentifer &&
target.identifier == _runnerNativeTargetIdentifier &&
target.packageProductDependencies != null &&
target.packageProductDependencies!
.contains(_flutterPluginsSwiftPackageProductDependencyIdentifer))
.contains(_flutterPluginsSwiftPackageProductDependencyIdentifier))
.toList()
.isNotEmpty;
if (logErrorIfNotMigrated && !migrated) {
@ -576,7 +576,7 @@ $newContent
// Find index where Native Target for the Runner target begins.
final ParsedNativeTarget? runnerNativeTarget = projectInfo.nativeTargets
.where((ParsedNativeTarget target) =>
target.identifier == _runnerNativeTargetIdentifer)
target.identifier == _runnerNativeTargetIdentifier)
.firstOrNull;
if (runnerNativeTarget == null) {
throw Exception(
@ -584,8 +584,8 @@ $newContent
);
}
final String subsectionLineStart = runnerNativeTarget.name != null
? '$_runnerNativeTargetIdentifer /* ${runnerNativeTarget.name} */ = {'
: _runnerNativeTargetIdentifer;
? '$_runnerNativeTargetIdentifier /* ${runnerNativeTarget.name} */ = {'
: _runnerNativeTargetIdentifier;
final int runnerNativeTargetStartIndex = lines.indexWhere(
(String line) => line.trim().startsWith(subsectionLineStart),
startSectionIndex,
@ -601,7 +601,7 @@ $newContent
// If packageProductDependencies is null, the packageProductDependencies field is missing and must be added.
const List<String> newContent = <String>[
' packageProductDependencies = (',
' $_flutterPluginsSwiftPackageProductDependencyIdentifer /* FlutterGeneratedPluginSwiftPackage */,',
' $_flutterPluginsSwiftPackageProductDependencyIdentifier /* FlutterGeneratedPluginSwiftPackage */,',
' );',
];
lines.insertAll(runnerNativeTargetStartIndex + 1, newContent);
@ -617,7 +617,7 @@ $newContent
);
}
const String newContent =
' $_flutterPluginsSwiftPackageProductDependencyIdentifer /* FlutterGeneratedPluginSwiftPackage */,';
' $_flutterPluginsSwiftPackageProductDependencyIdentifier /* FlutterGeneratedPluginSwiftPackage */,';
lines.insert(packageProductDependenciesIndex + 1, newContent);
}
return lines;
@ -632,7 +632,7 @@ $newContent
target.identifier == _projectIdentifier &&
target.packageReferences != null &&
target.packageReferences!
.contains(_localFlutterPluginsSwiftPackageReferenceIdentifer))
.contains(_localFlutterPluginsSwiftPackageReferenceIdentifier))
.toList()
.isNotEmpty;
if (logErrorIfNotMigrated && !migrated) {
@ -681,7 +681,7 @@ $newContent
// If packageReferences is null, the packageReferences field is missing and must be added.
const List<String> newContent = <String>[
' packageReferences = (',
' $_localFlutterPluginsSwiftPackageReferenceIdentifer /* XCLocalSwiftPackageReference "Flutter/ephemeral/Packages/FlutterGeneratedPluginSwiftPackage" */,',
' $_localFlutterPluginsSwiftPackageReferenceIdentifier /* XCLocalSwiftPackageReference "Flutter/ephemeral/Packages/FlutterGeneratedPluginSwiftPackage" */,',
' );',
];
lines.insertAll(projectStartIndex + 1, newContent);
@ -697,7 +697,7 @@ $newContent
);
}
const String newContent =
' $_localFlutterPluginsSwiftPackageReferenceIdentifer /* XCLocalSwiftPackageReference "Flutter/ephemeral/Packages/FlutterGeneratedPluginSwiftPackage" */,';
' $_localFlutterPluginsSwiftPackageReferenceIdentifier /* XCLocalSwiftPackageReference "Flutter/ephemeral/Packages/FlutterGeneratedPluginSwiftPackage" */,';
lines.insert(packageReferencesIndex + 1, newContent);
}
return lines;
@ -708,7 +708,7 @@ $newContent
bool logErrorIfNotMigrated = false,
}) {
final bool migrated = projectInfo.localSwiftPackageProductDependencies
.contains(_localFlutterPluginsSwiftPackageReferenceIdentifer);
.contains(_localFlutterPluginsSwiftPackageReferenceIdentifier);
if (logErrorIfNotMigrated && !migrated) {
logger.printError('XCLocalSwiftPackageReference was not migrated or was migrated incorrectly.');
}
@ -734,7 +734,7 @@ $newContent
// There isn't a XCLocalSwiftPackageReference section yet, so add it
final List<String> newContent = <String>[
'/* Begin XCLocalSwiftPackageReference section */',
' $_localFlutterPluginsSwiftPackageReferenceIdentifer /* XCLocalSwiftPackageReference "Flutter/ephemeral/Packages/FlutterGeneratedPluginSwiftPackage" */ = {',
' $_localFlutterPluginsSwiftPackageReferenceIdentifier /* XCLocalSwiftPackageReference "Flutter/ephemeral/Packages/FlutterGeneratedPluginSwiftPackage" */ = {',
' isa = XCLocalSwiftPackageReference;',
' relativePath = Flutter/ephemeral/Packages/FlutterGeneratedPluginSwiftPackage;',
' };',
@ -752,7 +752,7 @@ $newContent
}
final List<String> newContent = <String>[
' $_localFlutterPluginsSwiftPackageReferenceIdentifer /* XCLocalSwiftPackageReference "Flutter/ephemeral/Packages/FlutterGeneratedPluginSwiftPackage" */ = {',
' $_localFlutterPluginsSwiftPackageReferenceIdentifier /* XCLocalSwiftPackageReference "Flutter/ephemeral/Packages/FlutterGeneratedPluginSwiftPackage" */ = {',
' isa = XCLocalSwiftPackageReference;',
' relativePath = Flutter/ephemeral/Packages/FlutterGeneratedPluginSwiftPackage;',
' };',
@ -768,7 +768,7 @@ $newContent
bool logErrorIfNotMigrated = false,
}) {
final bool migrated = projectInfo.swiftPackageProductDependencies
.contains(_flutterPluginsSwiftPackageProductDependencyIdentifer);
.contains(_flutterPluginsSwiftPackageProductDependencyIdentifier);
if (logErrorIfNotMigrated && !migrated) {
logger.printError('XCSwiftPackageProductDependency was not migrated or was migrated incorrectly.');
}
@ -794,7 +794,7 @@ $newContent
// There isn't a XCSwiftPackageProductDependency section yet, so add it
final List<String> newContent = <String>[
'/* Begin XCSwiftPackageProductDependency section */',
' $_flutterPluginsSwiftPackageProductDependencyIdentifer /* FlutterGeneratedPluginSwiftPackage */ = {',
' $_flutterPluginsSwiftPackageProductDependencyIdentifier /* FlutterGeneratedPluginSwiftPackage */ = {',
' isa = XCSwiftPackageProductDependency;',
' productName = FlutterGeneratedPluginSwiftPackage;',
' };',
@ -812,7 +812,7 @@ $newContent
}
final List<String> newContent = <String>[
' $_flutterPluginsSwiftPackageProductDependencyIdentifer /* FlutterGeneratedPluginSwiftPackage */ = {',
' $_flutterPluginsSwiftPackageProductDependencyIdentifier /* FlutterGeneratedPluginSwiftPackage */ = {',
' isa = XCSwiftPackageProductDependency;',
' productName = FlutterGeneratedPluginSwiftPackage;',
' };',

View File

@ -875,7 +875,7 @@ $javaGradleCompatUrl
}
for (final XmlElement metaData in document.findAllElements('meta-data')) {
final String? name = metaData.getAttribute('android:name');
// External code checks for this string to indentify flutter android apps.
// External code checks for this string to identify flutter android apps.
// See cl/667760684 as an example.
if (name == 'flutterEmbedding') {
final String? embeddingVersionString = metaData.getAttribute('android:value');

View File

@ -113,7 +113,7 @@ void main() {
String configuration, {
bool verbose = false,
void Function(List<String> command)? onRun,
List<String>? additionalCommandArguements,
List<String>? additionalCommandArguments,
}) {
final FlutterProject flutterProject = FlutterProject.fromDirectory(fileSystem.currentDirectory);
final Directory flutterBuildDir = fileSystem.directory(getMacOSBuildDirectory());
@ -134,8 +134,8 @@ void main() {
else
'-quiet',
'COMPILER_INDEX_STORE_ENABLE=NO',
if (additionalCommandArguements != null)
...additionalCommandArguements,
if (additionalCommandArguments != null)
...additionalCommandArguments,
],
stdout: '''
STDOUT STUFF
@ -769,7 +769,7 @@ STDERR STUFF
ProcessManager: () => FakeProcessManager.list(<FakeCommand>[
setUpFakeXcodeBuildHandler(
'Debug',
additionalCommandArguements: <String>[
additionalCommandArguments: <String>[
'CODE_SIGN_ENTITLEMENTS=/.tmp_rand0/flutter_disable_sandbox_entitlement.rand0/DebugProfileWithDisabledSandboxing.entitlements',
],
),
@ -838,7 +838,7 @@ STDERR STUFF
ProcessManager: () => FakeProcessManager.list(<FakeCommand>[
setUpFakeXcodeBuildHandler(
'Release',
additionalCommandArguements: <String>[
additionalCommandArguments: <String>[
'CODE_SIGN_ENTITLEMENTS=/.tmp_rand0/flutter_disable_sandbox_entitlement.rand0/ReleaseWithDisabledSandboxing.entitlements',
],
),

View File

@ -300,7 +300,7 @@ void main() {
group('Impeller AndroidManifest.xml setting', () {
// Adds a key-value `<meta-data>` pair to the `<application>` tag in the
// cooresponding `AndroidManifest.xml` file, right before the closing
// corresponding `AndroidManifest.xml` file, right before the closing
// `</application>` tag.
void writeManifestMetadata({
required String projectPath,

View File

@ -25,7 +25,7 @@ const String _dartBin = 'bin/cache/dart-sdk/bin/dart';
// pubspec.yaml
// /package_a
// pubspec.yaml
// /pacakge_b
// /package_b
// pubspec.yaml
// /package_c
// pubspec.yaml

View File

@ -683,7 +683,7 @@ exit code: 66
logger.warningText,
contains('git remote set-url upstream'),
reason:
'When update-packages fails, it is often because of missing an upsteam remote.',
'When update-packages fails, it is often because of missing an upstream remote.',
);
expect(processManager, hasNoRemainingExpectations);
});

View File

@ -403,7 +403,7 @@ void main() {
expect(processManager, hasNoRemainingExpectations);
})));
// Wait until all asyncronous time has been elapsed.
// Wait until all asynchronous time has been elapsed.
do {
fakeAsync.elapse(const Duration(seconds: 2));
} while (fakeAsync.pendingTimers.isNotEmpty);

View File

@ -157,7 +157,7 @@ void main() {
'@rpath/libfoo.dylib',
].join('\n'),
),
// Change the instal name of the binary itself and of its dependencies.
// Change the install name of the binary itself and of its dependencies.
// We pass the old to new install name mappings of all native assets dylibs,
// even for the dylib that is being updated, since the `-change` option
// is ignored if the dylib does not depend on the target dylib.

View File

@ -353,7 +353,7 @@ void main() {
project.xcodeProjectSchemeFile().writeAsStringSync('''
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "${_runnerNativeTargetIdentifer(platform)}"
BlueprintIdentifier = "${_runnerNativeTargetIdentifier(platform)}"
BlueprintName = "Runner"
ReferencedContainer = "container:Runner.xcodeproj">
</BuildableReference>
@ -389,7 +389,7 @@ void main() {
project.xcodeProjectSchemeFile().writeAsStringSync('''
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "${_runnerNativeTargetIdentifer(platform)}"
BlueprintIdentifier = "${_runnerNativeTargetIdentifier(platform)}"
BuildableName = "Runner.app"
ReferencedContainer = "container:Runner.xcodeproj">
</BuildableReference>
@ -425,7 +425,7 @@ void main() {
project.xcodeProjectSchemeFile().writeAsStringSync('''
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "${_runnerNativeTargetIdentifer(platform)}"
BlueprintIdentifier = "${_runnerNativeTargetIdentifier(platform)}"
BuildableName = "Runner.app"
BlueprintName = "Runner">
</BuildableReference>
@ -1051,7 +1051,7 @@ void main() {
/* Begin PBXFrameworksBuildPhase section */
/* End PBXFrameworksBuildPhase section */
/* Begin NonExistant section */
${_runnerFrameworksBuildPhaseIdentifer(platform)} /* Frameworks */ = {
${_runnerFrameworksBuildPhaseIdentifier(platform)} /* Frameworks */ = {
};
/* End NonExistant section */
''';
@ -1436,7 +1436,7 @@ void main() {
/* Begin PBXNativeTarget section */
/* End PBXNativeTarget section */
/* Begin NonExistant section */
${_runnerNativeTargetIdentifer(platform)} /* Runner */ = {
${_runnerNativeTargetIdentifier(platform)} /* Runner */ = {
};
/* End NonExistant section */
''';
@ -2565,7 +2565,7 @@ String _validBuildActions(
<EnvironmentBuildable>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "${_runnerNativeTargetIdentifer(platform)}"
BlueprintIdentifier = "${_runnerNativeTargetIdentifier(platform)}"
BuildableName = "Runner.app"
BlueprintName = "Runner"
ReferencedContainer = "container:Runner.xcodeproj">
@ -2601,7 +2601,7 @@ String _validBuildableReference(SupportedPlatform platform) {
return '''
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "${_runnerNativeTargetIdentifer(platform)}"
BlueprintIdentifier = "${_runnerNativeTargetIdentifier(platform)}"
BuildableName = "Runner.app"
BlueprintName = "Runner"
ReferencedContainer = "container:Runner.xcodeproj">
@ -2677,13 +2677,13 @@ ${objects.join('\n')}
''';
}
String _runnerFrameworksBuildPhaseIdentifer(SupportedPlatform platform) {
String _runnerFrameworksBuildPhaseIdentifier(SupportedPlatform platform) {
return platform == SupportedPlatform.ios
? '97C146EB1CF9000F007C117D'
: '33CC10EA2044A3C60003C045';
}
String _runnerNativeTargetIdentifer(SupportedPlatform platform) {
String _runnerNativeTargetIdentifier(SupportedPlatform platform) {
return platform == SupportedPlatform.ios
? '97C146ED1CF9000F007C117D'
: '33CC10EC2044A3C60003C045';
@ -2740,7 +2740,7 @@ String unmigratedFrameworksBuildPhaseSection(
}) {
return <String>[
'/* Begin PBXFrameworksBuildPhase section */',
' ${_runnerFrameworksBuildPhaseIdentifer(platform)} /* Frameworks */ = {',
' ${_runnerFrameworksBuildPhaseIdentifier(platform)} /* Frameworks */ = {',
' isa = PBXFrameworksBuildPhase;',
' buildActionMask = 2147483647;',
if (!missingFiles) ...<String>[
@ -2769,7 +2769,7 @@ String migratedFrameworksBuildPhaseSection(
];
return <String>[
'/* Begin PBXFrameworksBuildPhase section */',
' ${_runnerFrameworksBuildPhaseIdentifer(platform)} /* Frameworks */ = {',
' ${_runnerFrameworksBuildPhaseIdentifier(platform)} /* Frameworks */ = {',
if (missingFiles) ...filesField,
' isa = PBXFrameworksBuildPhase;',
' buildActionMask = 2147483647;',
@ -2786,7 +2786,7 @@ String unmigratedFrameworksBuildPhaseSectionAsJson(
bool missingFiles = false,
}) {
return <String>[
' "${_runnerFrameworksBuildPhaseIdentifer(platform)}" : {',
' "${_runnerFrameworksBuildPhaseIdentifier(platform)}" : {',
' "buildActionMask" : "2147483647",',
if (!missingFiles) ...<String>[
' "files" : [',
@ -2801,7 +2801,7 @@ String unmigratedFrameworksBuildPhaseSectionAsJson(
String migratedFrameworksBuildPhaseSectionAsJson(SupportedPlatform platform) {
return '''
"${_runnerFrameworksBuildPhaseIdentifer(platform)}" : {
"${_runnerFrameworksBuildPhaseIdentifier(platform)}" : {
"buildActionMask" : "2147483647",
"files" : [
"78A318202AECB46A00862997"
@ -2819,13 +2819,13 @@ String unmigratedNativeTargetSection(
}) {
return <String>[
'/* Begin PBXNativeTarget section */',
' ${_runnerNativeTargetIdentifer(platform)} /* Runner */ = {',
' ${_runnerNativeTargetIdentifier(platform)} /* Runner */ = {',
' isa = PBXNativeTarget;',
' buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */;',
' buildPhases = (',
' 9740EEB61CF901F6004384FC /* Run Script */,',
' 97C146EA1CF9000F007C117D /* Sources */,',
' ${_runnerFrameworksBuildPhaseIdentifer(platform)} /* Frameworks */,',
' ${_runnerFrameworksBuildPhaseIdentifier(platform)} /* Frameworks */,',
' 97C146EC1CF9000F007C117D /* Resources */,',
' 9705A1C41CF9048500538489 /* Embed Frameworks */,',
' 3B06AD1E1E4923F5004D2608 /* Thin Binary */,',
@ -2863,14 +2863,14 @@ String migratedNativeTargetSection(
];
return <String>[
'/* Begin PBXNativeTarget section */',
' ${_runnerNativeTargetIdentifer(platform)} /* Runner */ = {',
' ${_runnerNativeTargetIdentifier(platform)} /* Runner */ = {',
if (missingPackageProductDependencies) ...packageDependencies,
' isa = PBXNativeTarget;',
' buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */;',
' buildPhases = (',
' 9740EEB61CF901F6004384FC /* Run Script */,',
' 97C146EA1CF9000F007C117D /* Sources */,',
' ${_runnerFrameworksBuildPhaseIdentifer(platform)} /* Frameworks */,',
' ${_runnerFrameworksBuildPhaseIdentifier(platform)} /* Frameworks */,',
' 97C146EC1CF9000F007C117D /* Resources */,',
' 9705A1C41CF9048500538489 /* Embed Frameworks */,',
' 3B06AD1E1E4923F5004D2608 /* Thin Binary */,',
@ -2894,12 +2894,12 @@ String unmigratedNativeTargetSectionAsJson(
bool missingPackageProductDependencies = false,
}) {
return <String>[
' "${_runnerNativeTargetIdentifer(platform)}" : {',
' "${_runnerNativeTargetIdentifier(platform)}" : {',
' "buildConfigurationList" : "97C147051CF9000F007C117D",',
' "buildPhases" : [',
' "9740EEB61CF901F6004384FC",',
' "97C146EA1CF9000F007C117D",',
' "${_runnerFrameworksBuildPhaseIdentifer(platform)}",',
' "${_runnerFrameworksBuildPhaseIdentifier(platform)}",',
' "97C146EC1CF9000F007C117D",',
' "9705A1C41CF9048500538489",',
' "3B06AD1E1E4923F5004D2608"',
@ -2923,12 +2923,12 @@ String unmigratedNativeTargetSectionAsJson(
String migratedNativeTargetSectionAsJson(SupportedPlatform platform) {
return '''
"${_runnerNativeTargetIdentifer(platform)}" : {
"${_runnerNativeTargetIdentifier(platform)}" : {
"buildConfigurationList" : "97C147051CF9000F007C117D",
"buildPhases" : [
"9740EEB61CF901F6004384FC",
"97C146EA1CF9000F007C117D",
"${_runnerFrameworksBuildPhaseIdentifer(platform)}",
"${_runnerFrameworksBuildPhaseIdentifier(platform)}",
"97C146EC1CF9000F007C117D",
"9705A1C41CF9048500538489",
"3B06AD1E1E4923F5004D2608"
@ -2967,9 +2967,9 @@ String unmigratedProjectSection(
' TargetAttributes = {',
' 331C8080294A63A400263BE5 = {',
' CreatedOnToolsVersion = 14.0;',
' TestTargetID = ${_runnerNativeTargetIdentifer(platform)};',
' TestTargetID = ${_runnerNativeTargetIdentifier(platform)};',
' };',
' ${_runnerNativeTargetIdentifer(platform)} = {',
' ${_runnerNativeTargetIdentifier(platform)} = {',
' CreatedOnToolsVersion = 7.3.1;',
' LastSwiftMigration = 1100;',
' };',
@ -2994,7 +2994,7 @@ String unmigratedProjectSection(
' projectDirPath = "";',
' projectRoot = "";',
' targets = (',
' ${_runnerNativeTargetIdentifer(platform)} /* Runner */,',
' ${_runnerNativeTargetIdentifier(platform)} /* Runner */,',
' 331C8080294A63A400263BE5 /* RunnerTests */,',
' );',
' };',
@ -3026,9 +3026,9 @@ String migratedProjectSection(
' TargetAttributes = {',
' 331C8080294A63A400263BE5 = {',
' CreatedOnToolsVersion = 14.0;',
' TestTargetID = ${_runnerNativeTargetIdentifer(platform)};',
' TestTargetID = ${_runnerNativeTargetIdentifier(platform)};',
' };',
' ${_runnerNativeTargetIdentifer(platform)} = {',
' ${_runnerNativeTargetIdentifier(platform)} = {',
' CreatedOnToolsVersion = 7.3.1;',
' LastSwiftMigration = 1100;',
' };',
@ -3048,7 +3048,7 @@ String migratedProjectSection(
' projectDirPath = "";',
' projectRoot = "";',
' targets = (',
' ${_runnerNativeTargetIdentifer(platform)} /* Runner */,',
' ${_runnerNativeTargetIdentifier(platform)} /* Runner */,',
' 331C8080294A63A400263BE5 /* RunnerTests */,',
' );',
' };',
@ -3067,13 +3067,13 @@ String unmigratedProjectSectionAsJson(
' "LastUpgradeCheck" : "1510",',
' "ORGANIZATIONNAME" : "",',
' "TargetAttributes" : {',
' "${_runnerNativeTargetIdentifer(platform)}" : {',
' "${_runnerNativeTargetIdentifier(platform)}" : {',
' "CreatedOnToolsVersion" : "7.3.1",',
' "LastSwiftMigration" : "1100"',
' },',
' "331C8080294A63A400263BE5" : {',
' "CreatedOnToolsVersion" : "14.0",',
' "TestTargetID" : "${_runnerNativeTargetIdentifer(platform)}"',
' "TestTargetID" : "${_runnerNativeTargetIdentifier(platform)}"',
' }',
' }',
' },',
@ -3095,7 +3095,7 @@ String unmigratedProjectSectionAsJson(
' "projectDirPath" : "",',
' "projectRoot" : "",',
' "targets" : [',
' "${_runnerNativeTargetIdentifer(platform)}",',
' "${_runnerNativeTargetIdentifier(platform)}",',
' "331C8080294A63A400263BE5"',
' ]',
' }',
@ -3110,13 +3110,13 @@ String migratedProjectSectionAsJson(SupportedPlatform platform) {
"LastUpgradeCheck" : "1510",
"ORGANIZATIONNAME" : "",
"TargetAttributes" : {
"${_runnerNativeTargetIdentifer(platform)}" : {
"${_runnerNativeTargetIdentifier(platform)}" : {
"CreatedOnToolsVersion" : "7.3.1",
"LastSwiftMigration" : "1100"
},
"331C8080294A63A400263BE5" : {
"CreatedOnToolsVersion" : "14.0",
"TestTargetID" : "${_runnerNativeTargetIdentifer(platform)}"
"TestTargetID" : "${_runnerNativeTargetIdentifier(platform)}"
}
}
},
@ -3137,7 +3137,7 @@ String migratedProjectSectionAsJson(SupportedPlatform platform) {
"projectDirPath" : "",
"projectRoot" : "",
"targets" : [
"${_runnerNativeTargetIdentifer(platform)}",
"${_runnerNativeTargetIdentifier(platform)}",
"331C8080294A63A400263BE5"
]
}''';

View File

@ -206,7 +206,7 @@ dependencies:
/// Project that load's a plugin from the specified path.
class PluginWithPathAndroidProjectWithoutDeferred extends PluginProject {
// Intentionally omit; this test case has nothing to do with deferred
// components and a DefererdComponentsConfig will cause duplicates of files
// components and a DeferredComponentsConfig will cause duplicates of files
// such as build.gradle{.kts}, settings.gradle{kts} and related to be
// generated, which in turn adds ambiguity to how the tests are built and
// executed.

View File

@ -467,7 +467,7 @@ void expectCCompilerIsConfigured(Directory appDirectory) {
for (final Directory subDir in nativeAssetsBuilderDir.listSync().whereType<Directory>()) {
// We only want to look at build/link hook invocation directories. The
// `/shared/*` directory allows the individual hooks to store data that is
// reusable across different build/link confiurations.
// reusable across different build/link configurations.
if (subDir.path.endsWith('shared')) {
continue;
}

View File

@ -25,7 +25,7 @@ import 'native_assets_test_utils.dart';
/// combinations that could trigger this error.
///
/// The version of `native_assets_cli` is derived from the template used by
/// `flutter create --type=pacakges_ffi`. See
/// `flutter create --type=packages_ffi`. See
/// [_getPackageFfiTemplatePubspecVersion].
void main() {
if (!platform.isMacOS && !platform.isLinux && !platform.isWindows) {