Skip to content

Commit c35efda

Browse files
asashourgoderbauer
andauthored
Remove superfluous words. (#119008)
* Remove superfluous words. * Update packages/flutter/lib/src/widgets/slotted_render_object_widget.dart Co-authored-by: Michael Goderbauer <[email protected]>
1 parent 64b4c69 commit c35efda

File tree

17 files changed

+19
-19
lines changed

17 files changed

+19
-19
lines changed

examples/api/lib/widgets/hardware_keyboard/key_event_manager.0.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ class FallbackFocusNode {
9191
///
9292
/// A global registrar like [FallbackKeyEventRegistrar] is almost always needed
9393
/// when patching [KeyEventManager.keyMessageHandler]. This is because
94-
/// [FallbackFocus] will add and and remove callbacks constantly, but
94+
/// [FallbackFocus] will add and remove callbacks constantly, but
9595
/// [KeyEventManager.keyMessageHandler] can only be patched once, and can not
9696
/// be unpatched. Therefore [FallbackFocus] must not directly interact with
9797
/// [KeyEventManager.keyMessageHandler], but through a separate registrar that

packages/flutter/lib/src/cupertino/switch.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ class CupertinoSwitch extends StatefulWidget {
127127

128128
/// The color to use for the focus highlight for keyboard interactions.
129129
///
130-
/// Defaults to a a slightly transparent [activeColor].
130+
/// Defaults to a slightly transparent [activeColor].
131131
final Color? focusColor;
132132

133133
/// {@template flutter.cupertino.CupertinoSwitch.applyTheme}

packages/flutter/lib/src/material/menu_anchor.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,11 @@ const bool _kDebugMenus = false;
4444
// has a submenu.
4545
const double _kDefaultSubmenuIconSize = 24;
4646

47-
// The default spacing between the the leading icon, label, trailing icon, and
47+
// The default spacing between the leading icon, label, trailing icon, and
4848
// shortcut label in a _MenuItemLabel.
4949
const double _kLabelItemDefaultSpacing = 12;
5050

51-
// The minimum spacing between the the leading icon, label, trailing icon, and
51+
// The minimum spacing between the leading icon, label, trailing icon, and
5252
// shortcut label in a _MenuItemLabel.
5353
const double _kLabelItemMinSpacing = 4;
5454

packages/flutter/lib/src/material/navigation_bar.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -595,7 +595,7 @@ class _NavigationDestinationInfo extends InheritedWidget {
595595
/// when label behavior is [NavigationDestinationLabelBehavior.onlyShowSelected].
596596
final int selectedIndex;
597597

598-
/// How many total destinations are are in this navigation bar.
598+
/// How many total destinations are in this navigation bar.
599599
///
600600
/// This is required for semantics, so that each destination can have a label
601601
/// "Tab 1 of 4", for example.

packages/flutter/lib/src/material/navigation_drawer.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,7 @@ class _NavigationDrawerDestinationInfo extends InheritedWidget {
488488
/// "Tab 1 of 3", for example.
489489
final int index;
490490

491-
/// How many total destinations are are in this navigation drawer.
491+
/// How many total destinations are in this navigation drawer.
492492
///
493493
/// This is required for semantics, so that each destination can have a label
494494
/// "Tab 1 of 4", for example.

packages/flutter/lib/src/painting/borders.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ class BorderSide with Diagnosticable {
130130
///
131131
/// Values typically range from -1.0 ([strokeAlignInside], inside border,
132132
/// default) to 1.0 ([strokeAlignOutside], outside border), without any
133-
/// bound constraints (e.g., a value of -2.0 is is not typical, but allowed).
133+
/// bound constraints (e.g., a value of -2.0 is not typical, but allowed).
134134
/// A value of 0 ([strokeAlignCenter]) will center the border on the edge
135135
/// of the widget.
136136
///

packages/flutter/lib/src/services/debug.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ KeyDataTransitMode? debugKeyEventSimulatorTransitModeOverride;
1717

1818
/// Profile and print statistics on Platform Channel usage.
1919
///
20-
/// When this is is true statistics about the usage of Platform Channels will be
20+
/// When this is true statistics about the usage of Platform Channels will be
2121
/// printed out periodically to the console and Timeline events will show the
2222
/// time between sending and receiving a message (encoding and decoding time
2323
/// excluded).

packages/flutter/lib/src/services/text_editing_delta.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ abstract class TextEditingDelta with Diagnosticable {
9393
// 'world'{replacementDestinationEnd, replacementDestinationStart + replacementSourceEnd}
9494
// can be considered an insertion. In this case we inserted 'd'.
9595
//
96-
// Similarly for a a deletion, say we are currently composing the word: 'worl'.
96+
// Similarly for a deletion, say we are currently composing the word: 'worl'.
9797
// Our current state is 'world|' with the cursor at the end of 'd'. If we
9898
// press backspace to delete the character 'd', the platform will tell us 'world'
9999
// was replaced with 'worl' at range (0,5). Here we can check if the text found

packages/flutter/lib/src/widgets/display_feature_sub_screen.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ class DisplayFeatureSubScreen extends StatelessWidget {
125125

126126
/// Returns the areas of the screen that are obstructed by display features.
127127
///
128-
/// A [DisplayFeature] obstructs the screen when the the area it occupies is
128+
/// A [DisplayFeature] obstructs the screen when the area it occupies is
129129
/// not 0 or the `state` is [DisplayFeatureState.postureHalfOpened].
130130
static Iterable<Rect> avoidBounds(MediaQueryData mediaQuery) {
131131
return mediaQuery.displayFeatures

packages/flutter/lib/src/widgets/selectable_region.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -506,7 +506,7 @@ class SelectableRegionState extends State<SelectableRegion> with TextSelectionDe
506506
/// is not pending or users end their gestures.
507507
void _triggerSelectionEndEdgeUpdate() {
508508
// This method can be called when the drag is not in progress. This can
509-
// happen if the the child scrollable returns SelectionResult.pending, and
509+
// happen if the child scrollable returns SelectionResult.pending, and
510510
// the selection area scheduled a selection update for the next frame, but
511511
// the drag is lifted before the scheduled selection update is run.
512512
if (_scheduledSelectionEndEdgeUpdate || !_userDraggingSelectionEnd) {
@@ -559,7 +559,7 @@ class SelectableRegionState extends State<SelectableRegion> with TextSelectionDe
559559
/// is not pending or users end their gestures.
560560
void _triggerSelectionStartEdgeUpdate() {
561561
// This method can be called when the drag is not in progress. This can
562-
// happen if the the child scrollable returns SelectionResult.pending, and
562+
// happen if the child scrollable returns SelectionResult.pending, and
563563
// the selection area scheduled a selection update for the next frame, but
564564
// the drag is lifted before the scheduled selection update is run.
565565
if (_scheduledSelectionStartEdgeUpdate || !_userDraggingSelectionStart) {

packages/flutter/lib/src/widgets/slotted_render_object_widget.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ mixin SlottedContainerRenderObjectMixin<S> on RenderBox {
116116
/// currently occupied by a child to obtain a name for that slot for debug
117117
/// outputs.
118118
///
119-
/// The default implementation calls [EnumName.name] on `slot` it it is an
119+
/// The default implementation calls [EnumName.name] on `slot` if it is an
120120
/// [Enum] value and `toString` if it is not.
121121
@protected
122122
String debugNameForSlot(S slot) {

packages/flutter/test/material/text_selection_test.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,7 @@ void main() {
459459
expect(find.text('Select all'), findsOneWidget);
460460
expect(find.byType(IconButton), findsOneWidget);
461461

462-
// Tapping Select all changes the menu items so that there is no no longer
462+
// Tapping Select all changes the menu items so that there is no longer
463463
// any overflow.
464464
await tester.tap(find.text('Select all'));
465465
await tester.pumpAndSettle();

packages/flutter/test/widgets/mouse_region_test.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1088,7 +1088,7 @@ void main() {
10881088
expect(paintCount, 1);
10891089
});
10901090

1091-
testWidgets('A MouseRegion mounted under the pointer should should take effect in the next postframe', (WidgetTester tester) async {
1091+
testWidgets('A MouseRegion mounted under the pointer should take effect in the next postframe', (WidgetTester tester) async {
10921092
bool hovered = false;
10931093

10941094
final TestGesture gesture = await tester.createGesture(kind: PointerDeviceKind.mouse);

packages/flutter_test/lib/src/widget_tester.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1100,7 +1100,7 @@ class WidgetTester extends WidgetController implements HitTestDispatcher, Ticker
11001100
///
11011101
/// To enter text into other widgets (e.g. a custom widget that maintains a
11021102
/// TextInputConnection the way that a [EditableText] does), first ensure that
1103-
/// that widget has an open connection (e.g. by using [tap] to to focus it),
1103+
/// that widget has an open connection (e.g. by using [tap] to focus it),
11041104
/// then call `testTextInput.enterText` directly (see
11051105
/// [TestTextInput.enterText]).
11061106
Future<void> enterText(Finder finder, String text) async {

packages/flutter_tools/lib/src/android/gradle.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -870,7 +870,7 @@ File findBundleFile(FlutterProject project, BuildInfo buildInfo, Logger logger,
870870

871871
// The Android Gradle plugin 3.5.0 adds the flavor name to file name.
872872
// For example: In release mode, if the flavor name is `foo_bar`, then
873-
// the file name name is `app-foo_bar-release.aab`.
873+
// the file name is `app-foo_bar-release.aab`.
874874
fileCandidates.add(
875875
getBundleDirectory(project)
876876
.childDirectory('${buildInfo.lowerCasedFlavor}${camelCase('_${buildInfo.modeName}')}')

packages/flutter_tools/templates/plugin_ffi/lib/projectName.dart.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ Future<SendPort> _helperIsolateSendPort = () async {
129129
throw UnsupportedError('Unsupported message type: ${data.runtimeType}');
130130
});
131131

132-
// Send the the port to the main isolate on which we can receive requests.
132+
// Send the port to the main isolate on which we can receive requests.
133133
sendPort.send(helperReceivePort.sendPort);
134134
}, receivePort.sendPort);
135135

packages/flutter_tools/test/general.shard/web/devfs_web_test.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -597,7 +597,7 @@ void main() {
597597
expect((await response.read().toList()).first, source.readAsBytesSync());
598598
}));
599599

600-
test('serves asset files files from in filesystem with unknown mime type', () => testbed.run(() async {
600+
test('serves asset files from in filesystem with unknown mime type', () => testbed.run(() async {
601601
final File source = globals.fs.file(globals.fs.path.join('build', 'flutter_assets', 'foo'))
602602
..createSync(recursive: true)
603603
..writeAsBytesSync(List<int>.filled(100, 0));

0 commit comments

Comments
 (0)