diff --git a/dev/bots/analyze_sample_code.dart b/dev/bots/analyze_sample_code.dart
index 239d5314e7..793cbb8190 100644
--- a/dev/bots/analyze_sample_code.dart
+++ b/dev/bots/analyze_sample_code.dart
@@ -164,7 +164,7 @@ class SampleCheckerException implements Exception {
class SampleChecker {
/// Creates a [SampleChecker].
///
- /// The positional argument is the path to the the package directory for the
+ /// The positional argument is the path to the package directory for the
/// flutter package within the Flutter root dir.
///
/// The optional `tempDirectory` argument supplies the location for the
diff --git a/dev/devicelab/lib/framework/cocoon.dart b/dev/devicelab/lib/framework/cocoon.dart
index 707b9a3b9b..749c39d8d0 100644
--- a/dev/devicelab/lib/framework/cocoon.dart
+++ b/dev/devicelab/lib/framework/cocoon.dart
@@ -29,7 +29,7 @@ typedef ProcessRunSync = ProcessResult Function(
/// Class for test runner to interact with Flutter's infrastructure service, Cocoon.
///
/// Cocoon assigns bots to run these devicelab tasks on real devices.
-/// To retrieve these results, the test runner needs to send results back so so the database can be updated.
+/// To retrieve these results, the test runner needs to send results back so the database can be updated.
class Cocoon {
Cocoon({
String serviceAccountTokenPath,
diff --git a/dev/integration_tests/flutter_gallery/lib/demo/animation/home.dart b/dev/integration_tests/flutter_gallery/lib/demo/animation/home.dart
index af8c875af3..56431ff02d 100644
--- a/dev/integration_tests/flutter_gallery/lib/demo/animation/home.dart
+++ b/dev/integration_tests/flutter_gallery/lib/demo/animation/home.dart
@@ -288,7 +288,7 @@ class _AllSectionsView extends AnimatedWidget {
Widget _build(BuildContext context, BoxConstraints constraints) {
final Size size = constraints.biggest;
- // The layout's progress from from a column to a row. Its value is
+ // The layout's progress from a column to a row. Its value is
// 0.0 when size.height equals the maxHeight, 1.0 when the size.height
// equals the midHeight.
final double tColumnToRow =
@@ -296,7 +296,7 @@ class _AllSectionsView extends AnimatedWidget {
(maxHeight! - midHeight!)).clamp(0.0, 1.0);
- // The layout's progress from from the midHeight row layout to
+ // The layout's progress from the midHeight row layout to
// a minHeight row layout. Its value is 0.0 when size.height equals
// midHeight and 1.0 when size.height equals minHeight.
final double tCollapsed =
diff --git a/dev/tools/gen_keycodes/data/keyboard_key.tmpl b/dev/tools/gen_keycodes/data/keyboard_key.tmpl
index f12cdd8dd1..740a945bd8 100644
--- a/dev/tools/gen_keycodes/data/keyboard_key.tmpl
+++ b/dev/tools/gen_keycodes/data/keyboard_key.tmpl
@@ -38,7 +38,7 @@ abstract class KeyboardKey with Diagnosticable {
/// As an example, if you wanted to implement an app where the "Q" key "quit"
/// something, you'd want to look at the logical key to detect this, since you
/// would like to have it match the key with "Q" on it, instead of always
-/// looking for "the key next next to the TAB key", since on a French keyboard,
+/// looking for "the key next to the TAB key", since on a French keyboard,
/// the key next to the TAB key has an "A" on it.
///
/// Conversely, if you wanted a game where the key next to the CAPS LOCK (the
@@ -393,7 +393,7 @@ class LogicalKeyboardKey extends KeyboardKey {
/// Conversely, if you wanted to implement an app where the "Q" key "quit"
/// something, you'd want to look at the logical key to detect this, since you
/// would like to have it match the key with "Q" on it, instead of always
-/// looking for "the key next next to the TAB key", since on a French keyboard,
+/// looking for "the key next to the TAB key", since on a French keyboard,
/// the key next to the TAB key has an "A" on it.
///
/// {@tool dartpad --template=stateful_widget_scaffold}
diff --git a/dev/tools/gen_keycodes/lib/physical_key_data.dart b/dev/tools/gen_keycodes/lib/physical_key_data.dart
index f6a92623ae..1e4d88ccdc 100644
--- a/dev/tools/gen_keycodes/lib/physical_key_data.dart
+++ b/dev/tools/gen_keycodes/lib/physical_key_data.dart
@@ -87,7 +87,7 @@ class PhysicalKeyData {
/// # key 101 "KEY_LINEFEED"
/// key 477 F12 FUNCTION
///
- /// We parse the commented out lines as well as the non-commented lines, so so
+ /// We parse the commented out lines as well as the non-commented lines, so
/// that we can get names for all of the available scan codes, not just ones
/// defined for the generic profile.
///
diff --git a/packages/flutter/lib/src/animation/curves.dart b/packages/flutter/lib/src/animation/curves.dart
index 3cccc267a2..21e279b4e7 100644
--- a/packages/flutter/lib/src/animation/curves.dart
+++ b/packages/flutter/lib/src/animation/curves.dart
@@ -1442,7 +1442,7 @@ class Curves {
/// {@animation 464 192 https://flutter.github.io/assets-for-api-docs/assets/animation/curve_ease_in.mp4}
static const Cubic easeIn = Cubic(0.42, 0.0, 1.0, 1.0);
- /// A cubic animation curve that starts starts slowly and ends linearly.
+ /// A cubic animation curve that starts slowly and ends linearly.
///
/// The symmetric animation to [linearToEaseOut].
///
diff --git a/packages/flutter/lib/src/cupertino/icons.dart b/packages/flutter/lib/src/cupertino/icons.dart
index 0b4b4f79a6..270c1269d6 100644
--- a/packages/flutter/lib/src/cupertino/icons.dart
+++ b/packages/flutter/lib/src/cupertino/icons.dart
@@ -766,7 +766,7 @@ class CupertinoIcons {
/// * [time_solid], which is similar, but without dots on the clock face.
static const IconData clock_solid = IconData(0xf4bf, fontFamily: iconFont, fontPackage: iconFontPackage);
- /// clock — Cupertino icon for a circle with with a 90 degree angle shape in the center, resembling a clock with hands showing 09:00.
+ /// clock — Cupertino icon for a circle with a 90 degree angle shape in the center, resembling a clock with hands showing 09:00.
/// This is the same icon as [clock] in cupertino_icons 1.0.0+.
///
/// See also:
@@ -776,7 +776,7 @@ class CupertinoIcons {
/// * [clock_solid], which is similar, but filled in and with dots on the clock face.
static const IconData time = IconData(0xf402, fontFamily: iconFont, fontPackage: iconFontPackage);
- /// clock_fill — Cupertino icon for a filled in circle with with a 90 degree angle shape in the center, resembling a clock with hands showing 09:00.
+ /// clock_fill — Cupertino icon for a filled in circle with a 90 degree angle shape in the center, resembling a clock with hands showing 09:00.
/// This is the same icon as [clock_fill] and [clock_solid] in cupertino_icons 1.0.0+.
///
/// See also:
diff --git a/packages/flutter/lib/src/foundation/diagnostics.dart b/packages/flutter/lib/src/foundation/diagnostics.dart
index 36420f91ad..94101be84f 100644
--- a/packages/flutter/lib/src/foundation/diagnostics.dart
+++ b/packages/flutter/lib/src/foundation/diagnostics.dart
@@ -32,7 +32,7 @@ enum DiagnosticLevel {
/// the diagnostics to be formatted consistently with other diagnostics and
/// they should expect them to sometimes be misleading. For example,
/// [FlagProperty] and [ObjectFlagProperty] have uglier formatting when the
- /// property `value` does does not match a value with a custom flag
+ /// property `value` does not match a value with a custom flag
/// description. An example of a misleading diagnostic is a diagnostic for
/// a property that has no effect because some other property of the object is
/// set in a way that causes the hidden property to have no effect.
diff --git a/packages/flutter/lib/src/material/elevated_button.dart b/packages/flutter/lib/src/material/elevated_button.dart
index 70f04e8713..402fa84fb0 100644
--- a/packages/flutter/lib/src/material/elevated_button.dart
+++ b/packages/flutter/lib/src/material/elevated_button.dart
@@ -237,7 +237,7 @@ class ElevatedButton extends ButtonStyleButton {
/// "Theme.foo" is shorthand for `Theme.of(context).foo`. Color
/// scheme values like "onSurface(0.38)" are shorthand for
/// `onSurface.withOpacity(0.38)`. [MaterialStateProperty] valued
- /// properties that are not followed by by a sublist have the same
+ /// properties that are not followed by a sublist have the same
/// value for all states, otherwise the values are as specified for
/// each state, and "others" means all other states.
///
diff --git a/packages/flutter/lib/src/material/material_localizations.dart b/packages/flutter/lib/src/material/material_localizations.dart
index 685b839291..ec8cace7e8 100644
--- a/packages/flutter/lib/src/material/material_localizations.dart
+++ b/packages/flutter/lib/src/material/material_localizations.dart
@@ -448,7 +448,7 @@ abstract class MaterialLocalizations {
/// Tooltip used to put the time picker into [TimePickerEntryMode.input].
String get inputTimeModeButtonLabel;
- /// The semantics label used to indicate which account is signed in in the
+ /// The semantics label used to indicate which account is signed in the
/// [UserAccountsDrawerHeader] widget.
String get signedInLabel;
diff --git a/packages/flutter/lib/src/material/navigation_rail.dart b/packages/flutter/lib/src/material/navigation_rail.dart
index 70ade273ea..61e4e8c7c8 100644
--- a/packages/flutter/lib/src/material/navigation_rail.dart
+++ b/packages/flutter/lib/src/material/navigation_rail.dart
@@ -112,7 +112,7 @@ class NavigationRail extends StatefulWidget {
/// [minWidth].
///
/// The argument [extended] must not be null. [extended] can only be set to
- /// true when when the [labelType] is null or [NavigationRailLabelType.none].
+ /// true when the [labelType] is null or [NavigationRailLabelType.none].
///
/// If [backgroundColor], [elevation], [groupAlignment], [labelType],
/// [unselectedLabelTextStyle], [selectedLabelTextStyle],
diff --git a/packages/flutter/lib/src/material/outlined_button.dart b/packages/flutter/lib/src/material/outlined_button.dart
index b0ec3fb2e9..eb33e9cdc0 100644
--- a/packages/flutter/lib/src/material/outlined_button.dart
+++ b/packages/flutter/lib/src/material/outlined_button.dart
@@ -218,7 +218,7 @@ class OutlinedButton extends ButtonStyleButton {
/// "Theme.foo" is shorthand for `Theme.of(context).foo`. Color
/// scheme values like "onSurface(0.38)" are shorthand for
/// `onSurface.withOpacity(0.38)`. [MaterialStateProperty] valued
- /// properties that are not followed by by a sublist have the same
+ /// properties that are not followed by a sublist have the same
/// value for all states, otherwise the values are as specified for
/// each state and "others" means all other states.
///
diff --git a/packages/flutter/lib/src/material/paginated_data_table.dart b/packages/flutter/lib/src/material/paginated_data_table.dart
index a8117d0940..a1f2fde6d3 100644
--- a/packages/flutter/lib/src/material/paginated_data_table.dart
+++ b/packages/flutter/lib/src/material/paginated_data_table.dart
@@ -26,7 +26,7 @@ import 'theme.dart';
/// A paginated data table shows [rowsPerPage] rows of data per page and
/// provides controls for showing other pages.
///
-/// Data is read lazily from from a [DataTableSource]. The widget is presented
+/// Data is read lazily from a [DataTableSource]. The widget is presented
/// as a [Card].
///
/// See also:
diff --git a/packages/flutter/lib/src/material/scaffold.dart b/packages/flutter/lib/src/material/scaffold.dart
index 0cdd346523..55eba6fe48 100644
--- a/packages/flutter/lib/src/material/scaffold.dart
+++ b/packages/flutter/lib/src/material/scaffold.dart
@@ -1505,7 +1505,7 @@ class Scaffold extends StatefulWidget {
/// This property is often useful when the [bottomNavigationBar] has
/// a non-rectangular shape, like [CircularNotchedRectangle], which
/// adds a [FloatingActionButton] sized notch to the top edge of the bar.
- /// In this case specifying `extendBody: true` ensures that that scaffold's
+ /// In this case specifying `extendBody: true` ensures that scaffold's
/// body will be visible through the bottom navigation bar's notch.
///
/// See also:
diff --git a/packages/flutter/lib/src/material/slider_theme.dart b/packages/flutter/lib/src/material/slider_theme.dart
index f350be4b8b..2e5da686e8 100644
--- a/packages/flutter/lib/src/material/slider_theme.dart
+++ b/packages/flutter/lib/src/material/slider_theme.dart
@@ -2004,7 +2004,7 @@ class RoundedRectRangeSliderTrackShape extends RangeSliderTrackShape {
/// [SliderThemeData.disabledActiveTrackColor],
/// [SliderThemeData.disabledInactiveTrackColor].
///
-/// ![A slider widget, consisting of 5 divisions and showing the round slider slider tick mark shape.]
+/// ![A slider widget, consisting of 5 divisions and showing the round slider tick mark shape.]
/// (https://flutter.github.io/assets-for-api-docs/assets/material/rounded_slider_tick_mark_shape.png)
///
/// See also:
diff --git a/packages/flutter/lib/src/material/text_button.dart b/packages/flutter/lib/src/material/text_button.dart
index e371889cb2..33abda510e 100644
--- a/packages/flutter/lib/src/material/text_button.dart
+++ b/packages/flutter/lib/src/material/text_button.dart
@@ -262,7 +262,7 @@ class TextButton extends ButtonStyleButton {
/// `Theme.of(context).foo`. Color scheme values like
/// "onSurface(0.38)" are shorthand for
/// `onSurface.withOpacity(0.38)`. [MaterialStateProperty] valued
- /// properties that are not followed by by a sublist have the same
+ /// properties that are not followed by a sublist have the same
/// value for all states, otherwise the values are as specified for
/// each state and "others" means all other states.
///
diff --git a/packages/flutter/lib/src/painting/edge_insets.dart b/packages/flutter/lib/src/painting/edge_insets.dart
index 2b5ad063b2..f1d1a08e76 100644
--- a/packages/flutter/lib/src/painting/edge_insets.dart
+++ b/packages/flutter/lib/src/painting/edge_insets.dart
@@ -158,7 +158,7 @@ abstract class EdgeInsetsGeometry {
);
}
- /// Returns the a new [EdgeInsetsGeometry] object with all values greater than
+ /// Returns a new [EdgeInsetsGeometry] object with all values greater than
/// or equal to `min`, and less than or equal to `max`.
EdgeInsetsGeometry clamp(EdgeInsetsGeometry min, EdgeInsetsGeometry max) {
return _MixedEdgeInsets.fromLRSETB(
diff --git a/packages/flutter/lib/src/rendering/box.dart b/packages/flutter/lib/src/rendering/box.dart
index b71e1835f3..a98ab24a60 100644
--- a/packages/flutter/lib/src/rendering/box.dart
+++ b/packages/flutter/lib/src/rendering/box.dart
@@ -1860,7 +1860,7 @@ abstract class RenderBox extends RenderObject {
///
/// In such cases, it may be impossible (or at least impractical) to actually
/// return a valid answer. In such cases, the function should call
- /// [debugCannotComputeDryLayout] from within an assert and and return a dummy
+ /// [debugCannotComputeDryLayout] from within an assert and return a dummy
/// value of `const Size(0, 0)`.
@protected
Size computeDryLayout(BoxConstraints constraints) {
diff --git a/packages/flutter/lib/src/rendering/flow.dart b/packages/flutter/lib/src/rendering/flow.dart
index 47494e3572..4e35c21ecc 100644
--- a/packages/flutter/lib/src/rendering/flow.dart
+++ b/packages/flutter/lib/src/rendering/flow.dart
@@ -70,7 +70,7 @@ abstract class FlowDelegate {
/// respecting the constraints.
///
/// If this function depends on information other than the given constraints,
- /// override [shouldRelayout] to indicate when when the container should
+ /// override [shouldRelayout] to indicate when the container should
/// relayout.
Size getSize(BoxConstraints constraints) => constraints.biggest;
@@ -85,7 +85,7 @@ abstract class FlowDelegate {
/// let them be larger or smaller than 100.0 by 100.0.
///
/// If this function depends on information other than the given constraints,
- /// override [shouldRelayout] to indicate when when the container should
+ /// override [shouldRelayout] to indicate when the container should
/// relayout.
BoxConstraints getConstraintsForChild(int i, BoxConstraints constraints) => constraints;
@@ -103,7 +103,7 @@ abstract class FlowDelegate {
/// matrices for the children.
///
/// If this function depends on information other than the given context,
- /// override [shouldRepaint] to indicate when when the container should
+ /// override [shouldRepaint] to indicate when the container should
/// relayout.
void paintChildren(FlowPaintingContext context);
diff --git a/packages/flutter/lib/src/rendering/object.dart b/packages/flutter/lib/src/rendering/object.dart
index 52e6f428b1..f842febef0 100644
--- a/packages/flutter/lib/src/rendering/object.dart
+++ b/packages/flutter/lib/src/rendering/object.dart
@@ -2439,7 +2439,7 @@ abstract class RenderObject extends AbstractNode with DiagnosticableTreeMixin im
/// or just after the trailing edge. These nodes have to be included in the
/// semantics tree to implement implicit accessibility scrolling on iOS where
/// the viewport scrolls implicitly when moving the accessibility focus from
- /// a the last visible node in the viewport to the first hidden one.
+ /// the last visible node in the viewport to the first hidden one.
///
/// See also:
///
diff --git a/packages/flutter/lib/src/rendering/sliver.dart b/packages/flutter/lib/src/rendering/sliver.dart
index 8c5e43e9d5..32b72607f5 100644
--- a/packages/flutter/lib/src/rendering/sliver.dart
+++ b/packages/flutter/lib/src/rendering/sliver.dart
@@ -919,7 +919,7 @@ class SliverHitTestEntry extends HitTestEntry {
class SliverLogicalParentData extends ParentData {
/// The position of the child relative to the zero scroll offset.
///
- /// The number of pixels from from the zero scroll offset of the parent sliver
+ /// The number of pixels from the zero scroll offset of the parent sliver
/// (the line at which its [SliverConstraints.scrollOffset] is zero) to the
/// side of the child closest to that offset. A [layoutOffset] can be null
/// when it cannot be determined. The value will be set after layout.
diff --git a/packages/flutter/lib/src/services/keyboard_key.dart b/packages/flutter/lib/src/services/keyboard_key.dart
index 144740b168..7ceeb35d91 100644
--- a/packages/flutter/lib/src/services/keyboard_key.dart
+++ b/packages/flutter/lib/src/services/keyboard_key.dart
@@ -38,7 +38,7 @@ abstract class KeyboardKey with Diagnosticable {
/// As an example, if you wanted to implement an app where the "Q" key "quit"
/// something, you'd want to look at the logical key to detect this, since you
/// would like to have it match the key with "Q" on it, instead of always
-/// looking for "the key next next to the TAB key", since on a French keyboard,
+/// looking for "the key next to the TAB key", since on a French keyboard,
/// the key next to the TAB key has an "A" on it.
///
/// Conversely, if you wanted a game where the key next to the CAPS LOCK (the
@@ -3524,7 +3524,7 @@ class LogicalKeyboardKey extends KeyboardKey {
/// Conversely, if you wanted to implement an app where the "Q" key "quit"
/// something, you'd want to look at the logical key to detect this, since you
/// would like to have it match the key with "Q" on it, instead of always
-/// looking for "the key next next to the TAB key", since on a French keyboard,
+/// looking for "the key next to the TAB key", since on a French keyboard,
/// the key next to the TAB key has an "A" on it.
///
/// {@tool dartpad --template=stateful_widget_scaffold}
diff --git a/packages/flutter/lib/src/services/mouse_cursor.dart b/packages/flutter/lib/src/services/mouse_cursor.dart
index 3f310eba13..128be1f6a4 100644
--- a/packages/flutter/lib/src/services/mouse_cursor.dart
+++ b/packages/flutter/lib/src/services/mouse_cursor.dart
@@ -345,7 +345,7 @@ class _SystemMouseCursorSession extends MouseCursorSession {
/// I-beam, etc.
///
/// An instance of [SystemMouseCursor] refers to one cursor from each platform
-/// that represents the same concept, such as being text text, being clickable,
+/// that represents the same concept, such as being text, being clickable,
/// or being a forbidden operation. Since the set of system cursors supported by
/// each platform varies, multiple instances can correspond to the same system
/// cursor.
diff --git a/packages/flutter/lib/src/services/raw_keyboard_linux.dart b/packages/flutter/lib/src/services/raw_keyboard_linux.dart
index de7b0e0d2a..525be3ac07 100644
--- a/packages/flutter/lib/src/services/raw_keyboard_linux.dart
+++ b/packages/flutter/lib/src/services/raw_keyboard_linux.dart
@@ -155,7 +155,7 @@ abstract class KeyHelper {
/// The numpad key from the specific key code mapping.
LogicalKeyboardKey? numpadKey(int keyCode);
- /// The logical key key from the specific key code mapping.
+ /// The logical key from the specific key code mapping.
LogicalKeyboardKey? logicalKey(int keyCode);
}
diff --git a/packages/flutter/lib/src/services/restoration.dart b/packages/flutter/lib/src/services/restoration.dart
index ab42efa24a..fd00fd42e9 100644
--- a/packages/flutter/lib/src/services/restoration.dart
+++ b/packages/flutter/lib/src/services/restoration.dart
@@ -60,7 +60,7 @@ typedef _BucketVisitor = void Function(RestorationBucket bucket);
/// to the notification, listeners must stop using the old bucket and restore
/// their state from the information in the new [rootBucket].
///
-/// Same platforms restrict the size of the restoration data. Therefore, the
+/// Some platforms restrict the size of the restoration data. Therefore, the
/// data stored in the buckets should be as small as possible while still
/// allowing the app to restore its current state from it. Data that can be
/// retrieved from other services (e.g. a database or a web server) should not
diff --git a/packages/flutter/lib/src/widgets/app.dart b/packages/flutter/lib/src/widgets/app.dart
index 4caef2a482..7947faa96b 100644
--- a/packages/flutter/lib/src/widgets/app.dart
+++ b/packages/flutter/lib/src/widgets/app.dart
@@ -823,14 +823,14 @@ class WidgetsApp extends StatefulWidget {
/// [localeListResolutionCallback]. If the callback or result is null, it will
/// fallback to trying the [localeResolutionCallback]. If both
/// [localeResolutionCallback] and [localeListResolutionCallback] are left
- /// null or fail to resolve (return null), the a basic fallback algorithm will
+ /// null or fail to resolve (return null), basic fallback algorithm will
/// be used.
///
/// The priority of each available fallback is:
///
- /// 1. [localeListResolutionCallback] is attempted first.
- /// 1. [localeResolutionCallback] is attempted second.
- /// 1. Flutter's basic resolution algorithm, as described in
+ /// 1. [localeListResolutionCallback] is attempted.
+ /// 2. [localeResolutionCallback] is attempted.
+ /// 3. Flutter's basic resolution algorithm, as described in
/// [supportedLocales], is attempted last.
///
/// Properly localized projects should provide a more advanced algorithm than
diff --git a/packages/flutter/lib/src/widgets/basic.dart b/packages/flutter/lib/src/widgets/basic.dart
index f7f2e6238f..d2fd58e50a 100644
--- a/packages/flutter/lib/src/widgets/basic.dart
+++ b/packages/flutter/lib/src/widgets/basic.dart
@@ -6165,7 +6165,7 @@ class RawImage extends LeafRenderObjectWidget {
/// See also:
///
/// * [AssetBundle], the interface for asset bundles.
-/// * [rootBundle], the default default asset bundle.
+/// * [rootBundle], the default asset bundle.
class DefaultAssetBundle extends InheritedWidget {
/// Creates a widget that determines the default asset bundle for its descendants.
///
diff --git a/packages/flutter/lib/src/widgets/editable_text.dart b/packages/flutter/lib/src/widgets/editable_text.dart
index 498550e2cf..739d510440 100644
--- a/packages/flutter/lib/src/widgets/editable_text.dart
+++ b/packages/flutter/lib/src/widgets/editable_text.dart
@@ -228,8 +228,8 @@ class TextEditingController extends ValueNotifier {
/// in a separate statement. To change both the [text] and the [selection]
/// change the controller's [value].
///
- /// If the new selection if of non-zero length, or is outside the composing
- /// range, the composing composing range is cleared.
+ /// If the new selection is of non-zero length, or is outside the composing
+ /// range, the composing range is cleared.
set selection(TextSelection newSelection) {
if (!isSelectionWithinTextBounds(newSelection))
throw FlutterError('invalid text selection: $newSelection');
diff --git a/packages/flutter/lib/src/widgets/inherited_theme.dart b/packages/flutter/lib/src/widgets/inherited_theme.dart
index c49bd9cda1..e1890e1352 100644
--- a/packages/flutter/lib/src/widgets/inherited_theme.dart
+++ b/packages/flutter/lib/src/widgets/inherited_theme.dart
@@ -44,7 +44,7 @@ import 'framework.dart';
/// final NavigatorState navigator = Navigator.of(context);
/// // This InheritedTheme.capture() saves references to themes that are
/// // found above the context provided to this widget's build method
-/// // excluding themes are are found above the navigator. Those themes do
+/// // excluding themes are found above the navigator. Those themes do
/// // not have to be captured, because they will already be visible from
/// // the new route pushed onto said navigator.
/// // Themes are captured outside of the route's builder because when the
diff --git a/packages/flutter/lib/src/widgets/routes.dart b/packages/flutter/lib/src/widgets/routes.dart
index 3050cd9b0c..a9cf21c1bd 100644
--- a/packages/flutter/lib/src/widgets/routes.dart
+++ b/packages/flutter/lib/src/widgets/routes.dart
@@ -377,7 +377,7 @@ abstract class TransitionRoute extends OverlayRoute {
///
/// If false, this route's [ModalRoute.buildTransitions] `secondaryAnimation` parameter
/// value will be [kAlwaysDismissedAnimation]. In other words, this route
- /// will not animate when when [nextRoute] is pushed on top of it or when
+ /// will not animate when [nextRoute] is pushed on top of it or when
/// [nextRoute] is popped off of it.
///
/// Returns true by default.
@@ -577,7 +577,7 @@ mixin LocalHistoryRoute on Route {
/// child: const Text('< Back'),
/// onPressed: () {
/// // Pop a route. If this is pressed while the red rectangle is
- /// // visible then it will will pop our local history entry, which
+ /// // visible then it will pop our local history entry, which
/// // will hide the red rectangle. Otherwise, the SecondPage will
/// // navigate back to the HomePage.
/// Navigator.of(context).pop();
diff --git a/packages/flutter/lib/src/widgets/scroll_activity.dart b/packages/flutter/lib/src/widgets/scroll_activity.dart
index 60d764699d..b3c4fae257 100644
--- a/packages/flutter/lib/src/widgets/scroll_activity.dart
+++ b/packages/flutter/lib/src/widgets/scroll_activity.dart
@@ -433,7 +433,7 @@ class ScrollDragController implements Drag {
String toString() => describeIdentity(this);
}
-/// The activity a scroll view performs when a the user drags their finger
+/// The activity a scroll view performs when the user drags their finger
/// across the screen.
///
/// See also:
diff --git a/packages/flutter/lib/src/widgets/scroll_simulation.dart b/packages/flutter/lib/src/widgets/scroll_simulation.dart
index 6d401857fc..70b9047c51 100644
--- a/packages/flutter/lib/src/widgets/scroll_simulation.dart
+++ b/packages/flutter/lib/src/widgets/scroll_simulation.dart
@@ -86,7 +86,7 @@ class BouncingScrollSimulation extends Simulation {
/// model to a spring model which causes [x] to "spring" back to [trailingExtent].
final double trailingExtent;
- /// The spring used used to return [x] to either [leadingExtent] or [trailingExtent].
+ /// The spring used to return [x] to either [leadingExtent] or [trailingExtent].
final SpringDescription spring;
late FrictionSimulation _frictionSimulation;
diff --git a/packages/flutter/lib/src/widgets/sliver_persistent_header.dart b/packages/flutter/lib/src/widgets/sliver_persistent_header.dart
index a7c93df9c4..0464d8d637 100644
--- a/packages/flutter/lib/src/widgets/sliver_persistent_header.dart
+++ b/packages/flutter/lib/src/widgets/sliver_persistent_header.dart
@@ -88,7 +88,7 @@ abstract class SliverPersistentHeaderDelegate {
/// Defaults to null.
OverScrollHeaderStretchConfiguration? get stretchConfiguration => null;
- /// Specifies how floating headers and pinned pinned headers should behave in
+ /// Specifies how floating headers and pinned headers should behave in
/// response to [RenderObject.showOnScreen] calls.
///
/// Defaults to null.
diff --git a/packages/flutter/test/material/raw_material_button_test.dart b/packages/flutter/test/material/raw_material_button_test.dart
index 5b7660a4f6..27f6f60205 100644
--- a/packages/flutter/test/material/raw_material_button_test.dart
+++ b/packages/flutter/test/material/raw_material_button_test.dart
@@ -227,7 +227,7 @@ void main() {
await tester.pump(); // start gesture
await tester.pump(const Duration(milliseconds: 200)); // wait for splash to be well under way
final RenderBox box = Material.of(tester.element(find.byType(InkWell)))! as RenderBox;
- // paints above above material
+ // paints above material
expect(box, paints..circle(x: 44.0, y: 0.0, color: splashColor));
await gesture.up();
});
diff --git a/packages/flutter/test/widgets/editable_text_test.dart b/packages/flutter/test/widgets/editable_text_test.dart
index 5814a65f43..5971eb359b 100644
--- a/packages/flutter/test/widgets/editable_text_test.dart
+++ b/packages/flutter/test/widgets/editable_text_test.dart
@@ -6849,7 +6849,7 @@ void main() {
defaultTargetPlatform == TargetPlatform.linux ||
defaultTargetPlatform == TargetPlatform.fuchsia
) {
- // `newValue` will will not be truncated on couple platforms.
+ // `newValue` will not be truncated on couple platforms.
expect(state.currentTextEditingValue.text, '你好啊朋友们');
expect(state.currentTextEditingValue.composing, const TextRange(start: 3, end: 6));
} else {
diff --git a/packages/flutter_driver/lib/src/driver/timeline.dart b/packages/flutter_driver/lib/src/driver/timeline.dart
index e7317560c9..cf63935b97 100644
--- a/packages/flutter_driver/lib/src/driver/timeline.dart
+++ b/packages/flutter_driver/lib/src/driver/timeline.dart
@@ -24,7 +24,7 @@ class Timeline {
/// This is parsed from "traceEvents" data within [json] and sorted by
/// timestamp. Anything without a valid timestamp is put in the beginning.
///
- /// This will be null if there are are no "traceEvents" in the [json].
+ /// This will be null if there are no "traceEvents" in the [json].
final List? events;
}
diff --git a/packages/flutter_test/lib/src/widget_tester.dart b/packages/flutter_test/lib/src/widget_tester.dart
index e5ca5d920f..4e9c7ab76a 100644
--- a/packages/flutter_test/lib/src/widget_tester.dart
+++ b/packages/flutter_test/lib/src/widget_tester.dart
@@ -763,7 +763,7 @@ class WidgetTester extends WidgetController implements HitTestDispatcher, Ticker
Duration additionalTime = const Duration(milliseconds: 1000),
}) => binding.runAsync(callback, additionalTime: additionalTime);
- /// Whether there are any any transient callbacks scheduled.
+ /// Whether there are any transient callbacks scheduled.
///
/// This essentially checks whether all animations have completed.
///
diff --git a/packages/flutter_tools/lib/src/android/android_workflow.dart b/packages/flutter_tools/lib/src/android/android_workflow.dart
index 0bf3f6a45c..4c62317842 100644
--- a/packages/flutter_tools/lib/src/android/android_workflow.dart
+++ b/packages/flutter_tools/lib/src/android/android_workflow.dart
@@ -120,7 +120,7 @@ class AndroidValidator extends DoctorValidator {
/// `java -version` response is not only a number, but also includes other
/// information eg. `openjdk version "1.7.0_212"`.
- /// This method extracts only the semantic version from from that response.
+ /// This method extracts only the semantic version from that response.
static String? _extractJavaVersion(String? text) {
if (text == null || text.isEmpty) {
return null;
diff --git a/packages/flutter_tools/lib/src/commands/test.dart b/packages/flutter_tools/lib/src/commands/test.dart
index 709a89a337..27c04d2e42 100644
--- a/packages/flutter_tools/lib/src/commands/test.dart
+++ b/packages/flutter_tools/lib/src/commands/test.dart
@@ -254,7 +254,7 @@ class TestCommand extends FlutterCommand with DeviceBasedDevelopmentArtifacts {
_testFiles = argResults.rest.map(globals.fs.path.absolute).toList();
if (_testFiles.isEmpty) {
// We don't scan the entire package, only the test/ subdirectory, so that
- // files with names like like "hit_test.dart" don't get run.
+ // files with names like "hit_test.dart" don't get run.
final Directory testDir = globals.fs.directory('test');
if (!testDir.existsSync()) {
throwToolExit('Test directory "${testDir.path}" not found.');
diff --git a/packages/flutter_tools/test/general.shard/cold_test.dart b/packages/flutter_tools/test/general.shard/cold_test.dart
index 788754d7e3..b745c95c77 100644
--- a/packages/flutter_tools/test/general.shard/cold_test.dart
+++ b/packages/flutter_tools/test/general.shard/cold_test.dart
@@ -23,7 +23,7 @@ import '../src/common.dart';
import '../src/context.dart';
void main() {
- testUsingContext('Exits with code 2 when when HttpException is thrown '
+ testUsingContext('Exits with code 2 when HttpException is thrown '
'during VM service connection', () async {
final FakeResidentCompiler residentCompiler = FakeResidentCompiler();
final FakeDevice device = FakeDevice()
diff --git a/packages/flutter_tools/test/general.shard/flutter_tester_device_test.dart b/packages/flutter_tools/test/general.shard/flutter_tester_device_test.dart
index 2bf8d87e92..34020c43dd 100644
--- a/packages/flutter_tools/test/general.shard/flutter_tester_device_test.dart
+++ b/packages/flutter_tools/test/general.shard/flutter_tester_device_test.dart
@@ -186,7 +186,7 @@ void main() {
device = createDevice(enableObservatory: true);
});
- testUsingContext('skips setting observatory port and uses the input port for for DDS instead', () async {
+ testUsingContext('skips setting observatory port and uses the input port for DDS instead', () async {
await device.start('example.dill');
await device.observatoryUri;
diff --git a/packages/flutter_tools/test/general.shard/hot_test.dart b/packages/flutter_tools/test/general.shard/hot_test.dart
index b9b4f45f36..0b476e31e7 100644
--- a/packages/flutter_tools/test/general.shard/hot_test.dart
+++ b/packages/flutter_tools/test/general.shard/hot_test.dart
@@ -237,7 +237,7 @@ void main() {
fileSystem = MemoryFileSystem.test();
});
- testUsingContext('Exits with code 2 when when HttpException is thrown '
+ testUsingContext('Exits with code 2 when HttpException is thrown '
'during VM service connection', () async {
fileSystem.file('.packages')
..createSync(recursive: true)
diff --git a/packages/flutter_tools/test/general.shard/web/devfs_web_test.dart b/packages/flutter_tools/test/general.shard/web/devfs_web_test.dart
index 4d28cb6e1e..819934f7d8 100644
--- a/packages/flutter_tools/test/general.shard/web/devfs_web_test.dart
+++ b/packages/flutter_tools/test/general.shard/web/devfs_web_test.dart
@@ -985,7 +985,7 @@ void main() {
expect(response.statusCode, 404);
}));
- test('WebAssetServer strips leading base href off off asset requests', () => testbed.run(() async {
+ test('WebAssetServer strips leading base href off of asset requests', () => testbed.run(() async {
const String htmlContent = '';
globals.fs.currentDirectory
.childDirectory('web')
diff --git a/packages/integration_test/lib/integration_test_driver.dart b/packages/integration_test/lib/integration_test_driver.dart
index 34229d9aa1..866785e87c 100644
--- a/packages/integration_test/lib/integration_test_driver.dart
+++ b/packages/integration_test/lib/integration_test_driver.dart
@@ -23,7 +23,7 @@ String testOutputsDirectory =
/// succeeds.
typedef ResponseDataCallback = FutureOr Function(Map?);
-/// Writes a json-serializable json data to
+/// Writes a json-serializable data to
/// [testOutputsDirectory]/`testOutputFilename.json`.
///
/// This is the default `responseDataCallback` in [integrationDriver].