From 0bc4368233c981cac5a5c73066a3b3c50ab8af00 Mon Sep 17 00:00:00 2001 From: Pierre-Louis <6655696+guidezpl@users.noreply.github.com> Date: Thu, 2 Jul 2020 22:08:02 +0200 Subject: [PATCH] Typo sweep (#60693) --- .../flutter_gallery/lib/demo/material/backdrop_demo.dart | 2 +- .../test/demo/material/text_form_field_demo_test.dart | 2 +- packages/flutter/lib/src/material/navigation_rail.dart | 2 +- packages/flutter/lib/src/material/scaffold.dart | 5 ++--- packages/flutter/lib/src/widgets/inherited_theme.dart | 2 +- packages/flutter/lib/src/widgets/nested_scroll_view.dart | 2 +- packages/flutter/lib/src/widgets/routes.dart | 2 +- packages/flutter/lib/src/widgets/sliver_fill.dart | 6 +++--- packages/flutter/test/cupertino/text_field_test.dart | 2 +- packages/flutter/test/material/text_field_test.dart | 2 +- packages/flutter/test/widgets/selectable_text_test.dart | 4 ++-- packages/flutter_test/lib/src/binding.dart | 2 +- .../flutter_tools/lib/src/build_system/targets/web.dart | 2 +- packages/flutter_tools/lib/src/fuchsia/fuchsia_pm.dart | 2 +- 14 files changed, 18 insertions(+), 19 deletions(-) diff --git a/dev/integration_tests/flutter_gallery/lib/demo/material/backdrop_demo.dart b/dev/integration_tests/flutter_gallery/lib/demo/material/backdrop_demo.dart index d03f6731e7..dd8c5c8b64 100644 --- a/dev/integration_tests/flutter_gallery/lib/demo/material/backdrop_demo.dart +++ b/dev/integration_tests/flutter_gallery/lib/demo/material/backdrop_demo.dart @@ -146,7 +146,7 @@ class CategoryView extends StatelessWidget { } // One BackdropPanel is visible at a time. It's stacked on top of the -// the BackdropDemo. +// BackdropDemo. class BackdropPanel extends StatelessWidget { const BackdropPanel({ Key key, diff --git a/dev/integration_tests/flutter_gallery/test/demo/material/text_form_field_demo_test.dart b/dev/integration_tests/flutter_gallery/test/demo/material/text_form_field_demo_test.dart index 864ea1b807..cc94b76714 100644 --- a/dev/integration_tests/flutter_gallery/test/demo/material/text_form_field_demo_test.dart +++ b/dev/integration_tests/flutter_gallery/test/demo/material/text_form_field_demo_test.dart @@ -22,7 +22,7 @@ void main() { final Finder passwordField = find.widgetWithText(TextFormField, 'Password *'); expect(passwordField, findsOneWidget); - // Verify the that the phone number's TextInputFormatter does what's expected. + // Verify that the phone number's TextInputFormatter does what's expected. await tester.enterText(phoneNumberField, '1234567890'); await tester.pumpAndSettle(); expect(find.text('(123) 456-7890'), findsOneWidget); diff --git a/packages/flutter/lib/src/material/navigation_rail.dart b/packages/flutter/lib/src/material/navigation_rail.dart index 99846ef0b4..9ed1ae2409 100644 --- a/packages/flutter/lib/src/material/navigation_rail.dart +++ b/packages/flutter/lib/src/material/navigation_rail.dart @@ -166,7 +166,7 @@ class NavigationRail extends StatefulWidget { /// /// The extended state has a wider rail container, and the labels are /// positioned next to the icons. [minExtendedWidth] can be used to set the - /// the minimum width of the rail when it is in this state. + /// minimum width of the rail when it is in this state. /// /// The rail will implicitly animate between the extended and normal state. /// diff --git a/packages/flutter/lib/src/material/scaffold.dart b/packages/flutter/lib/src/material/scaffold.dart index 4337780fd6..42a5c94af5 100644 --- a/packages/flutter/lib/src/material/scaffold.dart +++ b/packages/flutter/lib/src/material/scaffold.dart @@ -1034,9 +1034,8 @@ class Scaffold extends StatefulWidget { /// instead of only extending to the top of the [bottomNavigationBar] /// or the [persistentFooterButtons]. /// - /// If true, a [MediaQuery] widget whose bottom padding matches the - /// the height of the [bottomNavigationBar] will be added above the - /// scaffold's [body]. + /// If true, a [MediaQuery] widget whose bottom padding matches the height + /// of the [bottomNavigationBar] will be added above the scaffold's [body]. /// /// This property is often useful when the [bottomNavigationBar] has /// a non-rectangular shape, like [CircularNotchedRectangle], which diff --git a/packages/flutter/lib/src/widgets/inherited_theme.dart b/packages/flutter/lib/src/widgets/inherited_theme.dart index 71b08cdb1a..75145841ee 100644 --- a/packages/flutter/lib/src/widgets/inherited_theme.dart +++ b/packages/flutter/lib/src/widgets/inherited_theme.dart @@ -123,7 +123,7 @@ abstract class InheritedTheme extends InheritedWidget { final Type themeType = theme.runtimeType; // Only remember the first theme of any type. This assumes // that inherited themes completely shadow ancestors of the - // the same type. + // same type. if (!themeTypes.contains(themeType)) { themeTypes.add(themeType); themes.add(theme); diff --git a/packages/flutter/lib/src/widgets/nested_scroll_view.dart b/packages/flutter/lib/src/widgets/nested_scroll_view.dart index 823c2f1295..a065ed2b7d 100644 --- a/packages/flutter/lib/src/widgets/nested_scroll_view.dart +++ b/packages/flutter/lib/src/widgets/nested_scroll_view.dart @@ -545,7 +545,7 @@ class NestedScrollViewState extends State { /// See also: /// /// * [outerController], which exposes the [ScrollController] used by the - /// the sliver(s) contained in [NestedScrollView.headerSliverBuilder]. + /// sliver(s) contained in [NestedScrollView.headerSliverBuilder]. ScrollController get innerController => _coordinator._innerController; /// The [ScrollController] provided to the [ScrollView] in diff --git a/packages/flutter/lib/src/widgets/routes.dart b/packages/flutter/lib/src/widgets/routes.dart index b3a8d4eddd..7fe9c8ff46 100644 --- a/packages/flutter/lib/src/widgets/routes.dart +++ b/packages/flutter/lib/src/widgets/routes.dart @@ -182,7 +182,7 @@ abstract class TransitionRoute extends OverlayRoute { break; case AnimationStatus.dismissed: // We might still be an active route if a subclass is controlling the - // the transition and hits the dismissed status. For example, the iOS + // transition and hits the dismissed status. For example, the iOS // back gesture drives this animation to the dismissed status before // removing the route and disposing it. if (!isActive) { diff --git a/packages/flutter/lib/src/widgets/sliver_fill.dart b/packages/flutter/lib/src/widgets/sliver_fill.dart index cb95d095d9..dbe3d08520 100644 --- a/packages/flutter/lib/src/widgets/sliver_fill.dart +++ b/packages/flutter/lib/src/widgets/sliver_fill.dart @@ -201,9 +201,9 @@ class _RenderSliverFractionalPadding extends RenderSliverEdgeInsetsPadding { /// account in deciding how to layout this sliver. /// /// [SliverFillRemaining] will size its [child] to fill the viewport in the -/// main axis if that space is larger than the child's extent, and the -/// the amount of space that has been scrolled beforehand has not exceeded the -/// main axis extent of the viewport. +/// main axis if that space is larger than the child's extent, and the amount +/// of space that has been scrolled beforehand has not exceeded the main axis +/// extent of the viewport. /// /// {@tool dartpad --template=stateless_widget_scaffold} /// diff --git a/packages/flutter/test/cupertino/text_field_test.dart b/packages/flutter/test/cupertino/text_field_test.dart index 52d5a2b462..e3a1e8e1e3 100644 --- a/packages/flutter/test/cupertino/text_field_test.dart +++ b/packages/flutter/test/cupertino/text_field_test.dart @@ -1680,7 +1680,7 @@ void main() { await tester.pump(); // Plain collapsed selection at the edge of first word. In iOS 12, the - // the first tap after a double tap ends up putting the cursor at where + // first tap after a double tap ends up putting the cursor at where // you tapped instead of the edge like every other single tap. This is // likely a bug in iOS 12 and not present in other versions. expect( diff --git a/packages/flutter/test/material/text_field_test.dart b/packages/flutter/test/material/text_field_test.dart index 84b8dd7f77..ff192110b4 100644 --- a/packages/flutter/test/material/text_field_test.dart +++ b/packages/flutter/test/material/text_field_test.dart @@ -6497,7 +6497,7 @@ void main() { await tester.pump(); // Plain collapsed selection at the edge of first word. In iOS 12, the - // the first tap after a double tap ends up putting the cursor at where + // first tap after a double tap ends up putting the cursor at where // you tapped instead of the edge like every other single tap. This is // likely a bug in iOS 12 and not present in other versions. expect( diff --git a/packages/flutter/test/widgets/selectable_text_test.dart b/packages/flutter/test/widgets/selectable_text_test.dart index 68caa9942d..d856f2d601 100644 --- a/packages/flutter/test/widgets/selectable_text_test.dart +++ b/packages/flutter/test/widgets/selectable_text_test.dart @@ -2695,7 +2695,7 @@ void main() { await tester.pump(); // Plain collapsed selection at the edge of first word. In iOS 12, the - // the first tap after a double tap ends up putting the cursor at where + // first tap after a double tap ends up putting the cursor at where // you tapped instead of the edge like every other single tap. This is // likely a bug in iOS 12 and not present in other versions. expect( @@ -3493,7 +3493,7 @@ void main() { expect( tester.getSize(find.byType(SelectableText)), // When the strut fontSize is larger than a provided TextStyle, the - // the strut's height takes precedence. + // strut's height takes precedence. const Size(93.0, 54.0), ); }, diff --git a/packages/flutter_test/lib/src/binding.dart b/packages/flutter_test/lib/src/binding.dart index 57e43d2ed3..5f63366b41 100644 --- a/packages/flutter_test/lib/src/binding.dart +++ b/packages/flutter_test/lib/src/binding.dart @@ -478,7 +478,7 @@ abstract class TestWidgetsFlutterBinding extends BindingBase /// The current client of the onscreen keyboard. Callers must pump /// an additional frame after setting this property to complete the - /// the focus change. + /// focus change. /// /// Instead of setting this directly, consider using /// [WidgetTester.showKeyboard]. diff --git a/packages/flutter_tools/lib/src/build_system/targets/web.dart b/packages/flutter_tools/lib/src/build_system/targets/web.dart index 5e65e56ea8..207449053a 100644 --- a/packages/flutter_tools/lib/src/build_system/targets/web.dart +++ b/packages/flutter_tools/lib/src/build_system/targets/web.dart @@ -503,7 +503,7 @@ self.addEventListener("fetch", (event) => { if (event.request.url == origin || event.request.url.startsWith(origin + '/#')) { key = '/'; } - // If the URL is not the the RESOURCE list, skip the cache. + // If the URL is not the RESOURCE list, skip the cache. if (!RESOURCES[key]) { return event.respondWith(fetch(event.request)); } diff --git a/packages/flutter_tools/lib/src/fuchsia/fuchsia_pm.dart b/packages/flutter_tools/lib/src/fuchsia/fuchsia_pm.dart index 7ed70e2119..5a9a8008d9 100644 --- a/packages/flutter_tools/lib/src/fuchsia/fuchsia_pm.dart +++ b/packages/flutter_tools/lib/src/fuchsia/fuchsia_pm.dart @@ -164,7 +164,7 @@ class FuchsiaPM { /// /// [FuchsiaPackageServer] takes care of initializing the package repository, /// spinning up the package server, publishing packages, and shutting down the -/// the server. +/// server. /// /// Example usage: /// var server = FuchsiaPackageServer(