Skip to content

Commit 1fd71de

Browse files
authored
Remove superfluous words from comments (#119055)
* Remove superfluous words from comments. * Revert `win32_window.h` Which seems to come from `gallery`
1 parent 0dd63d3 commit 1fd71de

28 files changed

+38
-38
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,15 +157,15 @@ class CupertinoAdaptiveTextSelectionToolbar extends StatelessWidget {
157157
final List<ContextMenuButtonItem>? buttonItems;
158158

159159
/// Returns a List of Widgets generated by turning [buttonItems] into the
160-
/// the default context menu buttons for Cupertino on the current platform.
160+
/// default context menu buttons for Cupertino on the current platform.
161161
///
162162
/// This is useful when building a text selection toolbar with the default
163163
/// button appearance for the given platform, but where the toolbar and/or the
164164
/// button actions and labels may be custom.
165165
///
166166
/// Does not build Material buttons. On non-Apple platforms, Cupertino buttons
167167
/// will still be used, because the Cupertino library does not access the
168-
/// Material library. To get the native-looking buttons on every platform, use
168+
/// Material library. To get the native-looking buttons on every platform,
169169
/// use [AdaptiveTextSelectionToolbar.getAdaptiveButtons] in the Material
170170
/// library.
171171
///

packages/flutter/lib/src/foundation/diagnostics.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2561,7 +2561,7 @@ class DiagnosticsProperty<T> extends DiagnosticsNode {
25612561
/// The [showName], [showSeparator], [style], [missingIfNull], and [level]
25622562
/// arguments must not be null.
25632563
///
2564-
/// The [level] argument is just a suggestion and can be overridden if
2564+
/// The [level] argument is just a suggestion and can be overridden
25652565
/// if something else about the property causes it to have a lower or higher
25662566
/// level. For example, if calling `computeValue` throws an exception, [level]
25672567
/// will always return [DiagnosticLevel.error].

packages/flutter/lib/src/gestures/monodrag.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ abstract class DragGestureRecognizer extends OneSequenceGestureRecognizer {
180180
/// * [allowedButtonsFilter], which decides which button will be allowed.
181181
GestureDragCancelCallback? onCancel;
182182

183-
/// The minimum distance an input pointer drag must have moved to
183+
/// The minimum distance an input pointer drag must have moved
184184
/// to be considered a fling gesture.
185185
///
186186
/// This value is typically compared with the distance traveled along the

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import 'theme_data.dart';
2020
/// Action chips can be tapped to trigger an action or show progress and
2121
/// confirmation. For Material 3, a disabled state is supported for Action
2222
/// chips and is specified with [onPressed] being null. For previous versions
23-
/// of Material Design, it is recommended to remove the Action chip from the
23+
/// of Material Design, it is recommended to remove the Action chip from
2424
/// the interface entirely rather than display a disabled chip.
2525
///
2626
/// Action chips are displayed after primary content, such as below a card or

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ class AdaptiveTextSelectionToolbar extends StatelessWidget {
220220
}
221221

222222
/// Returns a List of Widgets generated by turning [buttonItems] into the
223-
/// the default context menu buttons for the current platform.
223+
/// default context menu buttons for the current platform.
224224
///
225225
/// This is useful when building a text selection toolbar with the default
226226
/// button appearance for the given platform, but where the toolbar and/or the

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ class _PreferredAppBarSize extends Size {
129129
///
130130
/// If the app bar's [actions] contains [TextButton]s, they will not
131131
/// be visible if their foreground (text) color is the same as the
132-
/// the app bar's background color.
132+
/// app bar's background color.
133133
///
134134
/// The default app bar [backgroundColor] is the overall theme's
135135
/// [ColorScheme.primary] if the overall theme's brightness is
@@ -591,7 +591,7 @@ class AppBar extends StatefulWidget implements PreferredSizeWidget {
591591
/// See also:
592592
///
593593
/// * [actionsIconTheme], which defines the appearance of icons in
594-
/// in the [actions] list.
594+
/// the [actions] list.
595595
final IconThemeData? iconTheme;
596596

597597
/// {@template flutter.material.appbar.actionsIconTheme}
@@ -746,7 +746,7 @@ class AppBar extends StatefulWidget implements PreferredSizeWidget {
746746
///
747747
/// * [titleTextStyle], which overrides the default text style for the [title].
748748
/// * [DefaultTextStyle], which overrides the default text style for all of the
749-
/// the widgets in a subtree.
749+
/// widgets in a subtree.
750750
final TextStyle? toolbarTextStyle;
751751

752752
/// {@template flutter.material.appbar.titleTextStyle}
@@ -764,7 +764,7 @@ class AppBar extends StatefulWidget implements PreferredSizeWidget {
764764
/// [title], [leading], and [actions] widgets, also known as the
765765
/// AppBar's "toolbar".
766766
/// * [DefaultTextStyle], which overrides the default text style for all of the
767-
/// the widgets in a subtree.
767+
/// widgets in a subtree.
768768
final TextStyle? titleTextStyle;
769769

770770
/// {@template flutter.material.appbar.systemOverlayStyle}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ import 'toggleable.dart';
3434
///
3535
/// {@tool dartpad}
3636
/// This example shows how you can override the default theme of
37-
/// of a [Checkbox] with a [MaterialStateProperty].
37+
/// a [Checkbox] with a [MaterialStateProperty].
3838
/// In this example, the checkbox's color will be `Colors.blue` when the [Checkbox]
3939
/// is being pressed, hovered, or focused. Otherwise, the checkbox's color will
4040
/// be `Colors.red`.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ const Duration _kBaseSettleDuration = Duration(milliseconds: 246);
115115
/// {@end-tool}
116116
///
117117
/// An open drawer may be closed with a swipe to close gesture, pressing the
118-
/// the escape key, by tapping the scrim, or by calling pop route function such as
118+
/// escape key, by tapping the scrim, or by calling pop route function such as
119119
/// [Navigator.pop]. For example a drawer item might close the drawer when tapped:
120120
///
121121
/// ```dart

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ class FlexibleSpaceBar extends StatefulWidget {
116116
/// bottom-left or its center.
117117
///
118118
/// Typically this property is used to adjust how far the title is
119-
/// is inset from the bottom-left and it is specified along with
119+
/// inset from the bottom-left and it is specified along with
120120
/// [centerTitle] false.
121121
///
122122
/// By default the value of this property is

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ class RangeSlider extends StatefulWidget {
326326
/// the range slider thumb is hovered or dragged.
327327
///
328328
/// If this property is null, [RangeSlider] will use [activeColor] with
329-
/// with an opacity of 0.12. If null, [SliderThemeData.overlayColor]
329+
/// an opacity of 0.12. If null, [SliderThemeData.overlayColor]
330330
/// will be used, otherwise defaults to [ColorScheme.primary] with
331331
/// an opacity of 0.12.
332332
final MaterialStateProperty<Color?>? overlayColor;

0 commit comments

Comments
 (0)