Typo fixes (#42688)

diff --git a/packages/flutter/lib/src/cupertino/text_field.dart b/packages/flutter/lib/src/cupertino/text_field.dart
index 68411be..e7ab59e 100644
--- a/packages/flutter/lib/src/cupertino/text_field.dart
+++ b/packages/flutter/lib/src/cupertino/text_field.dart
@@ -94,7 +94,7 @@
   void onSingleTapUp(TapUpDetails details) {
     // Because TextSelectionGestureDetector listens to taps that happen on
     // widgets in front of it, tapping the clear button will also trigger
-    // this handler. If the the clear button widget recognizes the up event,
+    // this handler. If the clear button widget recognizes the up event,
     // then do not handle it.
     if (_state._clearGlobalKey.currentContext != null) {
       final RenderBox renderBox = _state._clearGlobalKey.currentContext.findRenderObject();
diff --git a/packages/flutter/lib/src/material/flat_button.dart b/packages/flutter/lib/src/material/flat_button.dart
index bd84a66..2a2cead 100644
--- a/packages/flutter/lib/src/material/flat_button.dart
+++ b/packages/flutter/lib/src/material/flat_button.dart
@@ -207,7 +207,7 @@
   }
 }
 
-/// The type of of FlatButtons created with [FlatButton.icon].
+/// The type of FlatButtons created with [FlatButton.icon].
 ///
 /// This class only exists to give FlatButtons created with [FlatButton.icon]
 /// a distinct class for the sake of [ButtonTheme]. It can not be instantiated.
diff --git a/packages/flutter/lib/src/material/outline_button.dart b/packages/flutter/lib/src/material/outline_button.dart
index 4e672d1..dcb54e1 100644
--- a/packages/flutter/lib/src/material/outline_button.dart
+++ b/packages/flutter/lib/src/material/outline_button.dart
@@ -199,7 +199,7 @@
   }
 }
 
-// The type of of OutlineButtons created with OutlineButton.icon.
+// The type of OutlineButtons created with OutlineButton.icon.
 //
 // This class only exists to give OutlineButtons created with OutlineButton.icon
 // a distinct class for the sake of ButtonTheme. It can not be instantiated.
diff --git a/packages/flutter/lib/src/material/raised_button.dart b/packages/flutter/lib/src/material/raised_button.dart
index 17cd6f6..1758b52 100644
--- a/packages/flutter/lib/src/material/raised_button.dart
+++ b/packages/flutter/lib/src/material/raised_button.dart
@@ -244,7 +244,7 @@
   }
 }
 
-/// The type of of RaisedButtons created with [RaisedButton.icon].
+/// The type of RaisedButtons created with [RaisedButton.icon].
 ///
 /// This class only exists to give RaisedButtons created with [RaisedButton.icon]
 /// a distinct class for the sake of [ButtonTheme]. It can not be instantiated.
diff --git a/packages/flutter/lib/src/material/slider_theme.dart b/packages/flutter/lib/src/material/slider_theme.dart
index 4d2599f..56dc9d5 100644
--- a/packages/flutter/lib/src/material/slider_theme.dart
+++ b/packages/flutter/lib/src/material/slider_theme.dart
@@ -65,7 +65,7 @@
 /// {@endtemplate}
 ///
 /// {@template flutter.material.slider.seeAlso.roundSliderTickMarkShape}
-///  * [RoundSliderTickMarkShape], which is the the default [Slider]'s tick mark
+///  * [RoundSliderTickMarkShape], which is the default [Slider]'s tick mark
 ///    shape that paints a solid circle.
 /// {@endtemplate}
 ///
@@ -508,7 +508,7 @@
   ///
   /// See also:
   ///
-  ///  * [RoundRangeSliderTickMarkShape], which is the the default tick mark
+  ///  * [RoundRangeSliderTickMarkShape], which is the default tick mark
   ///    shape for the range slider.
   final SliderTickMarkShape tickMarkShape;
 
@@ -518,7 +518,7 @@
   ///
   /// See also:
   ///
-  ///  * [RoundRangeSliderThumbShape], which is the the default thumb shape for
+  ///  * [RoundRangeSliderThumbShape], which is the default thumb shape for
   ///    the [RangeSlider].
   final SliderComponentShape thumbShape;
 
@@ -533,7 +533,7 @@
   ///
   /// See also:
   ///
-  ///  * [RoundedRectRangeSliderTrackShape], which is the the default track
+  ///  * [RoundedRectRangeSliderTrackShape], which is the default track
   ///    shape for the [RangeSlider].
   final SliderTrackShape trackShape;
 
@@ -544,7 +544,7 @@
   ///
   /// See also:
   ///
-  ///  * [PaddleRangeSliderValueIndicatorShape], which is the the default value
+  ///  * [PaddleRangeSliderValueIndicatorShape], which is the default value
   ///    indicator shape for the [RangeSlider].
   final SliderComponentShape valueIndicatorShape;
 
@@ -558,7 +558,7 @@
   ///
   /// See also:
   ///
-  ///  * [RoundSliderTickMarkShape], which is the the default tick mark shape
+  ///  * [RoundSliderTickMarkShape], which is the default tick mark shape
   ///    for the [Slider].
   final RangeSliderTickMarkShape rangeTickMarkShape;
 
@@ -572,7 +572,7 @@
   ///
   /// See also:
   ///
-  ///  * [RoundSliderThumbShape], which is the the default thumb shape for the
+  ///  * [RoundSliderThumbShape], which is the default thumb shape for the
   ///    [Slider].
   final RangeSliderThumbShape rangeThumbShape;
 
@@ -587,7 +587,7 @@
   ///
   /// See also:
   ///
-  ///  * [RoundedRectSliderTrackShape], which is the the default track
+  ///  * [RoundedRectSliderTrackShape], which is the default track
   ///    shape for the [Slider].
   final RangeSliderTrackShape rangeTrackShape;
 
@@ -602,7 +602,7 @@
   ///
   /// See also:
   ///
-  ///  * [PaddleSliderValueIndicatorShape], which is the the default value
+  ///  * [PaddleSliderValueIndicatorShape], which is the default value
   ///    indicator shape for the [Slider].
   final RangeSliderValueIndicatorShape rangeValueIndicatorShape;
 
diff --git a/packages/flutter/lib/src/rendering/layer.dart b/packages/flutter/lib/src/rendering/layer.dart
index 0daf748..3314b7a 100644
--- a/packages/flutter/lib/src/rendering/layer.dart
+++ b/packages/flutter/lib/src/rendering/layer.dart
@@ -2295,7 +2295,7 @@
   /// The [offset] defaults to [Offset.zero] if not provided, and is ignored if
   /// [size] is not set.
   ///
-  /// The [offset] only offsets the the clipping rectagle, and does not affect
+  /// The [offset] only offsets the clipping rectagle, and does not affect
   /// how the painting or annotation search is propagated to its children.
   final Offset offset;
 
diff --git a/packages/flutter/lib/src/widgets/widget_inspector.dart b/packages/flutter/lib/src/widgets/widget_inspector.dart
index c3a6042..626140a 100644
--- a/packages/flutter/lib/src/widgets/widget_inspector.dart
+++ b/packages/flutter/lib/src/widgets/widget_inspector.dart
@@ -2112,7 +2112,7 @@
 
   final GlobalKey _ignorePointerKey = GlobalKey();
 
-  /// Distance from the edge of of the bounding box for an element to consider
+  /// Distance from the edge of the bounding box for an element to consider
   /// as selecting the edge of the bounding box.
   static const double _edgeHitMargin = 2.0;
 
diff --git a/packages/flutter/test/material/app_bar_test.dart b/packages/flutter/test/material/app_bar_test.dart
index 3a08ba1..8f3349d 100644
--- a/packages/flutter/test/material/app_bar_test.dart
+++ b/packages/flutter/test/material/app_bar_test.dart
@@ -777,7 +777,7 @@
     expect(appBarHeight(tester), kTextTabBarHeight);
 
     // Drag the scrollable up and down. The app bar should not snap open, the
-    // bottof of the appbar should just track the drag offset.
+    // bottom of the appbar should just track the drag offset.
     TestGesture gesture = await tester.startGesture(const Offset(50.0, 200.0));
     await gesture.moveBy(const Offset(0.0, 100.0));
     await tester.pump();
diff --git a/packages/flutter/test/material/color_scheme_test.dart b/packages/flutter/test/material/color_scheme_test.dart
index e74efc7..eb98628 100644
--- a/packages/flutter/test/material/color_scheme_test.dart
+++ b/packages/flutter/test/material/color_scheme_test.dart
@@ -7,7 +7,7 @@
 
 void main() {
   test('light scheme matches the spec', () {
-    // Colors should match the The Material Design baseline default theme:
+    // Colors should match the Material Design baseline default theme:
     // https://material.io/design/color/dark-theme.html#ui-application
     const ColorScheme scheme = ColorScheme.light();
     expect(scheme.primary, const Color(0xff6200ee));
@@ -26,7 +26,7 @@
   });
 
   test('dark scheme matches the spec', () {
-    // Colors should match the The Material Design baseline dark theme:
+    // Colors should match the Material Design baseline dark theme:
     // https://material.io/design/color/dark-theme.html#ui-application
     const ColorScheme scheme = ColorScheme.dark();
     expect(scheme.primary, const Color(0xffbb86fc));
diff --git a/packages/flutter/test/material/popup_menu_test.dart b/packages/flutter/test/material/popup_menu_test.dart
index 202a7cf..122a077 100644
--- a/packages/flutter/test/material/popup_menu_test.dart
+++ b/packages/flutter/test/material/popup_menu_test.dart
@@ -711,7 +711,7 @@
               onSelected: (String result) { },
               itemBuilder: (BuildContext context) {
                 return <PopupMenuEntry<String>>[
-                  // This menu item's height will be 48 because the the default minimum height
+                  // This menu item's height will be 48 because the default minimum height
                   // is 48 and the height of the text is less than 48.
                   const PopupMenuItem<String>(
                     value: '0',
diff --git a/packages/flutter/test/material/range_slider_test.dart b/packages/flutter/test/material/range_slider_test.dart
index 0e570ca..4972ea0 100644
--- a/packages/flutter/test/material/range_slider_test.dart
+++ b/packages/flutter/test/material/range_slider_test.dart
@@ -1367,7 +1367,7 @@
     final Offset bottomRight = tester.getBottomRight(find.byType(RangeSlider)).translate(-24, 0);
     final Offset middle = topLeft + bottomRight / 2;
 
-    // Drag the the thumbs towards the center.
+    // Drag the thumbs towards the center.
     final Offset leftTarget = topLeft + (bottomRight - topLeft) * 0.3;
     await tester.dragFrom(leftTarget, middle - leftTarget);
     await tester.pumpAndSettle();
@@ -1437,7 +1437,7 @@
     final Offset bottomRight = tester.getBottomRight(find.byType(RangeSlider)).translate(-24, 0);
     final Offset middle = topLeft + bottomRight / 2;
 
-    // Drag the the thumbs towards the center.
+    // Drag the thumbs towards the center.
     final Offset leftTarget = topLeft + (bottomRight - topLeft) * 0.3;
     await tester.dragFrom(leftTarget, middle - leftTarget);
     await tester.pumpAndSettle();
@@ -1511,7 +1511,7 @@
     final Offset bottomRight = tester.getBottomRight(find.byType(RangeSlider)).translate(-24, 0);
     final Offset middle = topLeft + bottomRight / 2;
 
-    // Drag the the thumbs towards the center.
+    // Drag the thumbs towards the center.
     final Offset leftTarget = topLeft + (bottomRight - topLeft) * 0.3;
     await tester.dragFrom(leftTarget, middle - leftTarget);
     await tester.pumpAndSettle();