Skip to content

Commit

Permalink
Remove superfluous words. (#119008)
Browse files Browse the repository at this point in the history
* Remove superfluous words.

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

Co-authored-by: Michael Goderbauer <goderbauer@google.com>
  • Loading branch information
asashour and goderbauer authored Jan 24, 2023
1 parent 64b4c69 commit c35efda
Show file tree
Hide file tree
Showing 17 changed files with 19 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ class FallbackFocusNode {
///
/// A global registrar like [FallbackKeyEventRegistrar] is almost always needed
/// when patching [KeyEventManager.keyMessageHandler]. This is because
/// [FallbackFocus] will add and and remove callbacks constantly, but
/// [FallbackFocus] will add and remove callbacks constantly, but
/// [KeyEventManager.keyMessageHandler] can only be patched once, and can not
/// be unpatched. Therefore [FallbackFocus] must not directly interact with
/// [KeyEventManager.keyMessageHandler], but through a separate registrar that
Expand Down
2 changes: 1 addition & 1 deletion packages/flutter/lib/src/cupertino/switch.dart
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ class CupertinoSwitch extends StatefulWidget {

/// The color to use for the focus highlight for keyboard interactions.
///
/// Defaults to a a slightly transparent [activeColor].
/// Defaults to a slightly transparent [activeColor].
final Color? focusColor;

/// {@template flutter.cupertino.CupertinoSwitch.applyTheme}
Expand Down
4 changes: 2 additions & 2 deletions packages/flutter/lib/src/material/menu_anchor.dart
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,11 @@ const bool _kDebugMenus = false;
// has a submenu.
const double _kDefaultSubmenuIconSize = 24;

// The default spacing between the the leading icon, label, trailing icon, and
// The default spacing between the leading icon, label, trailing icon, and
// shortcut label in a _MenuItemLabel.
const double _kLabelItemDefaultSpacing = 12;

// The minimum spacing between the the leading icon, label, trailing icon, and
// The minimum spacing between the leading icon, label, trailing icon, and
// shortcut label in a _MenuItemLabel.
const double _kLabelItemMinSpacing = 4;

Expand Down
2 changes: 1 addition & 1 deletion packages/flutter/lib/src/material/navigation_bar.dart
Original file line number Diff line number Diff line change
Expand Up @@ -595,7 +595,7 @@ class _NavigationDestinationInfo extends InheritedWidget {
/// when label behavior is [NavigationDestinationLabelBehavior.onlyShowSelected].
final int selectedIndex;

/// How many total destinations are are in this navigation bar.
/// How many total destinations are in this navigation bar.
///
/// This is required for semantics, so that each destination can have a label
/// "Tab 1 of 4", for example.
Expand Down
2 changes: 1 addition & 1 deletion packages/flutter/lib/src/material/navigation_drawer.dart
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,7 @@ class _NavigationDrawerDestinationInfo extends InheritedWidget {
/// "Tab 1 of 3", for example.
final int index;

/// How many total destinations are are in this navigation drawer.
/// How many total destinations are in this navigation drawer.
///
/// This is required for semantics, so that each destination can have a label
/// "Tab 1 of 4", for example.
Expand Down
2 changes: 1 addition & 1 deletion packages/flutter/lib/src/painting/borders.dart
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ class BorderSide with Diagnosticable {
///
/// Values typically range from -1.0 ([strokeAlignInside], inside border,
/// default) to 1.0 ([strokeAlignOutside], outside border), without any
/// bound constraints (e.g., a value of -2.0 is is not typical, but allowed).
/// bound constraints (e.g., a value of -2.0 is not typical, but allowed).
/// A value of 0 ([strokeAlignCenter]) will center the border on the edge
/// of the widget.
///
Expand Down
2 changes: 1 addition & 1 deletion packages/flutter/lib/src/services/debug.dart
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ KeyDataTransitMode? debugKeyEventSimulatorTransitModeOverride;

/// Profile and print statistics on Platform Channel usage.
///
/// When this is is true statistics about the usage of Platform Channels will be
/// When this is true statistics about the usage of Platform Channels will be
/// printed out periodically to the console and Timeline events will show the
/// time between sending and receiving a message (encoding and decoding time
/// excluded).
Expand Down
2 changes: 1 addition & 1 deletion packages/flutter/lib/src/services/text_editing_delta.dart
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ abstract class TextEditingDelta with Diagnosticable {
// 'world'{replacementDestinationEnd, replacementDestinationStart + replacementSourceEnd}
// can be considered an insertion. In this case we inserted 'd'.
//
// Similarly for a a deletion, say we are currently composing the word: 'worl'.
// Similarly for a deletion, say we are currently composing the word: 'worl'.
// Our current state is 'world|' with the cursor at the end of 'd'. If we
// press backspace to delete the character 'd', the platform will tell us 'world'
// was replaced with 'worl' at range (0,5). Here we can check if the text found
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ class DisplayFeatureSubScreen extends StatelessWidget {

/// Returns the areas of the screen that are obstructed by display features.
///
/// A [DisplayFeature] obstructs the screen when the the area it occupies is
/// A [DisplayFeature] obstructs the screen when the area it occupies is
/// not 0 or the `state` is [DisplayFeatureState.postureHalfOpened].
static Iterable<Rect> avoidBounds(MediaQueryData mediaQuery) {
return mediaQuery.displayFeatures
Expand Down
4 changes: 2 additions & 2 deletions packages/flutter/lib/src/widgets/selectable_region.dart
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,7 @@ class SelectableRegionState extends State<SelectableRegion> with TextSelectionDe
/// is not pending or users end their gestures.
void _triggerSelectionEndEdgeUpdate() {
// This method can be called when the drag is not in progress. This can
// happen if the the child scrollable returns SelectionResult.pending, and
// happen if the child scrollable returns SelectionResult.pending, and
// the selection area scheduled a selection update for the next frame, but
// the drag is lifted before the scheduled selection update is run.
if (_scheduledSelectionEndEdgeUpdate || !_userDraggingSelectionEnd) {
Expand Down Expand Up @@ -559,7 +559,7 @@ class SelectableRegionState extends State<SelectableRegion> with TextSelectionDe
/// is not pending or users end their gestures.
void _triggerSelectionStartEdgeUpdate() {
// This method can be called when the drag is not in progress. This can
// happen if the the child scrollable returns SelectionResult.pending, and
// happen if the child scrollable returns SelectionResult.pending, and
// the selection area scheduled a selection update for the next frame, but
// the drag is lifted before the scheduled selection update is run.
if (_scheduledSelectionStartEdgeUpdate || !_userDraggingSelectionStart) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ mixin SlottedContainerRenderObjectMixin<S> on RenderBox {
/// currently occupied by a child to obtain a name for that slot for debug
/// outputs.
///
/// The default implementation calls [EnumName.name] on `slot` it it is an
/// The default implementation calls [EnumName.name] on `slot` if it is an
/// [Enum] value and `toString` if it is not.
@protected
String debugNameForSlot(S slot) {
Expand Down
2 changes: 1 addition & 1 deletion packages/flutter/test/material/text_selection_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,7 @@ void main() {
expect(find.text('Select all'), findsOneWidget);
expect(find.byType(IconButton), findsOneWidget);

// Tapping Select all changes the menu items so that there is no no longer
// Tapping Select all changes the menu items so that there is no longer
// any overflow.
await tester.tap(find.text('Select all'));
await tester.pumpAndSettle();
Expand Down
2 changes: 1 addition & 1 deletion packages/flutter/test/widgets/mouse_region_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1088,7 +1088,7 @@ void main() {
expect(paintCount, 1);
});

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

final TestGesture gesture = await tester.createGesture(kind: PointerDeviceKind.mouse);
Expand Down
2 changes: 1 addition & 1 deletion packages/flutter_test/lib/src/widget_tester.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1100,7 +1100,7 @@ class WidgetTester extends WidgetController implements HitTestDispatcher, Ticker
///
/// To enter text into other widgets (e.g. a custom widget that maintains a
/// TextInputConnection the way that a [EditableText] does), first ensure that
/// that widget has an open connection (e.g. by using [tap] to to focus it),
/// that widget has an open connection (e.g. by using [tap] to focus it),
/// then call `testTextInput.enterText` directly (see
/// [TestTextInput.enterText]).
Future<void> enterText(Finder finder, String text) async {
Expand Down
2 changes: 1 addition & 1 deletion packages/flutter_tools/lib/src/android/gradle.dart
Original file line number Diff line number Diff line change
Expand Up @@ -870,7 +870,7 @@ File findBundleFile(FlutterProject project, BuildInfo buildInfo, Logger logger,

// The Android Gradle plugin 3.5.0 adds the flavor name to file name.
// For example: In release mode, if the flavor name is `foo_bar`, then
// the file name name is `app-foo_bar-release.aab`.
// the file name is `app-foo_bar-release.aab`.
fileCandidates.add(
getBundleDirectory(project)
.childDirectory('${buildInfo.lowerCasedFlavor}${camelCase('_${buildInfo.modeName}')}')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ Future<SendPort> _helperIsolateSendPort = () async {
throw UnsupportedError('Unsupported message type: ${data.runtimeType}');
});

// Send the the port to the main isolate on which we can receive requests.
// Send the port to the main isolate on which we can receive requests.
sendPort.send(helperReceivePort.sendPort);
}, receivePort.sendPort);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -597,7 +597,7 @@ void main() {
expect((await response.read().toList()).first, source.readAsBytesSync());
}));

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

0 comments on commit c35efda

Please sign in to comment.