diff --git a/packages/flutter/lib/src/cupertino/text_field.dart b/packages/flutter/lib/src/cupertino/text_field.dart index 68411be0cc0..e7ab59efc5a 100644 --- a/packages/flutter/lib/src/cupertino/text_field.dart +++ b/packages/flutter/lib/src/cupertino/text_field.dart @@ -94,7 +94,7 @@ class _CupertinoTextFieldSelectionGestureDetectorBuilder extends TextSelectionGe 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 bd84a66ea0e..2a2cead5dc0 100644 --- a/packages/flutter/lib/src/material/flat_button.dart +++ b/packages/flutter/lib/src/material/flat_button.dart @@ -207,7 +207,7 @@ class FlatButton extends MaterialButton { } } -/// 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 4e672d12daf..dcb54e10ec8 100644 --- a/packages/flutter/lib/src/material/outline_button.dart +++ b/packages/flutter/lib/src/material/outline_button.dart @@ -199,7 +199,7 @@ class OutlineButton extends MaterialButton { } } -// 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 17cd6f60ab1..1758b526fde 100644 --- a/packages/flutter/lib/src/material/raised_button.dart +++ b/packages/flutter/lib/src/material/raised_button.dart @@ -244,7 +244,7 @@ class RaisedButton extends MaterialButton { } } -/// 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 4d2599f2286..56dc9d5344e 100644 --- a/packages/flutter/lib/src/material/slider_theme.dart +++ b/packages/flutter/lib/src/material/slider_theme.dart @@ -65,7 +65,7 @@ import 'theme_data.dart'; /// {@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 @@ class SliderThemeData extends Diagnosticable { /// /// 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 @@ class SliderThemeData extends Diagnosticable { /// /// 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 @@ class SliderThemeData extends Diagnosticable { /// /// 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 @@ class SliderThemeData extends Diagnosticable { /// /// 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 @@ class SliderThemeData extends Diagnosticable { /// /// 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 @@ class SliderThemeData extends Diagnosticable { /// /// 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 @@ class SliderThemeData extends Diagnosticable { /// /// 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 @@ class SliderThemeData extends Diagnosticable { /// /// 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 0daf7488fff..3314b7aea0f 100644 --- a/packages/flutter/lib/src/rendering/layer.dart +++ b/packages/flutter/lib/src/rendering/layer.dart @@ -2295,7 +2295,7 @@ class AnnotatedRegionLayer extends ContainerLayer { /// 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 c3a60421d8b..626140a1a95 100644 --- a/packages/flutter/lib/src/widgets/widget_inspector.dart +++ b/packages/flutter/lib/src/widgets/widget_inspector.dart @@ -2112,7 +2112,7 @@ class _WidgetInspectorState extends State 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 3a08ba1ea44..8f3349d93ad 100644 --- a/packages/flutter/test/material/app_bar_test.dart +++ b/packages/flutter/test/material/app_bar_test.dart @@ -777,7 +777,7 @@ void main() { 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 e74efc77248..eb98628b344 100644 --- a/packages/flutter/test/material/color_scheme_test.dart +++ b/packages/flutter/test/material/color_scheme_test.dart @@ -7,7 +7,7 @@ import 'package:flutter_test/flutter_test.dart'; 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 @@ void main() { }); 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 202a7cf303d..122a0774eed 100644 --- a/packages/flutter/test/material/popup_menu_test.dart +++ b/packages/flutter/test/material/popup_menu_test.dart @@ -711,7 +711,7 @@ void main() { onSelected: (String result) { }, itemBuilder: (BuildContext context) { return >[ - // 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( value: '0', diff --git a/packages/flutter/test/material/range_slider_test.dart b/packages/flutter/test/material/range_slider_test.dart index 0e570ca6b74..4972ea08080 100644 --- a/packages/flutter/test/material/range_slider_test.dart +++ b/packages/flutter/test/material/range_slider_test.dart @@ -1367,7 +1367,7 @@ void main() { 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 @@ void main() { 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 @@ void main() { 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();