Unverified Commit 0821b759 authored by Shi-Hao Hong's avatar Shi-Hao Hong Committed by GitHub

Typo fixes (#42688)

parent 7f8e89b5
......@@ -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();
......
......@@ -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.
......
......@@ -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.
......
......@@ -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.
......
......@@ -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;
......
......@@ -2295,7 +2295,7 @@ class AnnotatedRegionLayer<T> 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;
......
......@@ -2112,7 +2112,7 @@ class _WidgetInspectorState extends State<WidgetInspector>
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;
......
......@@ -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();
......
......@@ -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));
......
......@@ -711,7 +711,7 @@ void main() {
onSelected: (String result) { },
itemBuilder: (BuildContext context) {
return <PopupMenuEntry<String>>[
// 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<String>(
value: '0',
......
......@@ -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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment