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 ...@@ -94,7 +94,7 @@ class _CupertinoTextFieldSelectionGestureDetectorBuilder extends TextSelectionGe
void onSingleTapUp(TapUpDetails details) { void onSingleTapUp(TapUpDetails details) {
// Because TextSelectionGestureDetector listens to taps that happen on // Because TextSelectionGestureDetector listens to taps that happen on
// widgets in front of it, tapping the clear button will also trigger // 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. // then do not handle it.
if (_state._clearGlobalKey.currentContext != null) { if (_state._clearGlobalKey.currentContext != null) {
final RenderBox renderBox = _state._clearGlobalKey.currentContext.findRenderObject(); final RenderBox renderBox = _state._clearGlobalKey.currentContext.findRenderObject();
......
...@@ -207,7 +207,7 @@ class FlatButton extends MaterialButton { ...@@ -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] /// This class only exists to give FlatButtons created with [FlatButton.icon]
/// a distinct class for the sake of [ButtonTheme]. It can not be instantiated. /// a distinct class for the sake of [ButtonTheme]. It can not be instantiated.
......
...@@ -199,7 +199,7 @@ class OutlineButton extends MaterialButton { ...@@ -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 // This class only exists to give OutlineButtons created with OutlineButton.icon
// a distinct class for the sake of ButtonTheme. It can not be instantiated. // a distinct class for the sake of ButtonTheme. It can not be instantiated.
......
...@@ -244,7 +244,7 @@ class RaisedButton extends MaterialButton { ...@@ -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] /// This class only exists to give RaisedButtons created with [RaisedButton.icon]
/// a distinct class for the sake of [ButtonTheme]. It can not be instantiated. /// a distinct class for the sake of [ButtonTheme]. It can not be instantiated.
......
...@@ -65,7 +65,7 @@ import 'theme_data.dart'; ...@@ -65,7 +65,7 @@ import 'theme_data.dart';
/// {@endtemplate} /// {@endtemplate}
/// ///
/// {@template flutter.material.slider.seeAlso.roundSliderTickMarkShape} /// {@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. /// shape that paints a solid circle.
/// {@endtemplate} /// {@endtemplate}
/// ///
...@@ -508,7 +508,7 @@ class SliderThemeData extends Diagnosticable { ...@@ -508,7 +508,7 @@ class SliderThemeData extends Diagnosticable {
/// ///
/// See also: /// See also:
/// ///
/// * [RoundRangeSliderTickMarkShape], which is the the default tick mark /// * [RoundRangeSliderTickMarkShape], which is the default tick mark
/// shape for the range slider. /// shape for the range slider.
final SliderTickMarkShape tickMarkShape; final SliderTickMarkShape tickMarkShape;
...@@ -518,7 +518,7 @@ class SliderThemeData extends Diagnosticable { ...@@ -518,7 +518,7 @@ class SliderThemeData extends Diagnosticable {
/// ///
/// See also: /// See also:
/// ///
/// * [RoundRangeSliderThumbShape], which is the the default thumb shape for /// * [RoundRangeSliderThumbShape], which is the default thumb shape for
/// the [RangeSlider]. /// the [RangeSlider].
final SliderComponentShape thumbShape; final SliderComponentShape thumbShape;
...@@ -533,7 +533,7 @@ class SliderThemeData extends Diagnosticable { ...@@ -533,7 +533,7 @@ class SliderThemeData extends Diagnosticable {
/// ///
/// See also: /// See also:
/// ///
/// * [RoundedRectRangeSliderTrackShape], which is the the default track /// * [RoundedRectRangeSliderTrackShape], which is the default track
/// shape for the [RangeSlider]. /// shape for the [RangeSlider].
final SliderTrackShape trackShape; final SliderTrackShape trackShape;
...@@ -544,7 +544,7 @@ class SliderThemeData extends Diagnosticable { ...@@ -544,7 +544,7 @@ class SliderThemeData extends Diagnosticable {
/// ///
/// See also: /// See also:
/// ///
/// * [PaddleRangeSliderValueIndicatorShape], which is the the default value /// * [PaddleRangeSliderValueIndicatorShape], which is the default value
/// indicator shape for the [RangeSlider]. /// indicator shape for the [RangeSlider].
final SliderComponentShape valueIndicatorShape; final SliderComponentShape valueIndicatorShape;
...@@ -558,7 +558,7 @@ class SliderThemeData extends Diagnosticable { ...@@ -558,7 +558,7 @@ class SliderThemeData extends Diagnosticable {
/// ///
/// See also: /// See also:
/// ///
/// * [RoundSliderTickMarkShape], which is the the default tick mark shape /// * [RoundSliderTickMarkShape], which is the default tick mark shape
/// for the [Slider]. /// for the [Slider].
final RangeSliderTickMarkShape rangeTickMarkShape; final RangeSliderTickMarkShape rangeTickMarkShape;
...@@ -572,7 +572,7 @@ class SliderThemeData extends Diagnosticable { ...@@ -572,7 +572,7 @@ class SliderThemeData extends Diagnosticable {
/// ///
/// See also: /// See also:
/// ///
/// * [RoundSliderThumbShape], which is the the default thumb shape for the /// * [RoundSliderThumbShape], which is the default thumb shape for the
/// [Slider]. /// [Slider].
final RangeSliderThumbShape rangeThumbShape; final RangeSliderThumbShape rangeThumbShape;
...@@ -587,7 +587,7 @@ class SliderThemeData extends Diagnosticable { ...@@ -587,7 +587,7 @@ class SliderThemeData extends Diagnosticable {
/// ///
/// See also: /// See also:
/// ///
/// * [RoundedRectSliderTrackShape], which is the the default track /// * [RoundedRectSliderTrackShape], which is the default track
/// shape for the [Slider]. /// shape for the [Slider].
final RangeSliderTrackShape rangeTrackShape; final RangeSliderTrackShape rangeTrackShape;
...@@ -602,7 +602,7 @@ class SliderThemeData extends Diagnosticable { ...@@ -602,7 +602,7 @@ class SliderThemeData extends Diagnosticable {
/// ///
/// See also: /// See also:
/// ///
/// * [PaddleSliderValueIndicatorShape], which is the the default value /// * [PaddleSliderValueIndicatorShape], which is the default value
/// indicator shape for the [Slider]. /// indicator shape for the [Slider].
final RangeSliderValueIndicatorShape rangeValueIndicatorShape; final RangeSliderValueIndicatorShape rangeValueIndicatorShape;
......
...@@ -2295,7 +2295,7 @@ class AnnotatedRegionLayer<T> extends ContainerLayer { ...@@ -2295,7 +2295,7 @@ class AnnotatedRegionLayer<T> extends ContainerLayer {
/// The [offset] defaults to [Offset.zero] if not provided, and is ignored if /// The [offset] defaults to [Offset.zero] if not provided, and is ignored if
/// [size] is not set. /// [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. /// how the painting or annotation search is propagated to its children.
final Offset offset; final Offset offset;
......
...@@ -2112,7 +2112,7 @@ class _WidgetInspectorState extends State<WidgetInspector> ...@@ -2112,7 +2112,7 @@ class _WidgetInspectorState extends State<WidgetInspector>
final GlobalKey _ignorePointerKey = GlobalKey(); 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. /// as selecting the edge of the bounding box.
static const double _edgeHitMargin = 2.0; static const double _edgeHitMargin = 2.0;
......
...@@ -777,7 +777,7 @@ void main() { ...@@ -777,7 +777,7 @@ void main() {
expect(appBarHeight(tester), kTextTabBarHeight); expect(appBarHeight(tester), kTextTabBarHeight);
// Drag the scrollable up and down. The app bar should not snap open, the // 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)); TestGesture gesture = await tester.startGesture(const Offset(50.0, 200.0));
await gesture.moveBy(const Offset(0.0, 100.0)); await gesture.moveBy(const Offset(0.0, 100.0));
await tester.pump(); await tester.pump();
......
...@@ -7,7 +7,7 @@ import 'package:flutter_test/flutter_test.dart'; ...@@ -7,7 +7,7 @@ import 'package:flutter_test/flutter_test.dart';
void main() { void main() {
test('light scheme matches the spec', () { 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 // https://material.io/design/color/dark-theme.html#ui-application
const ColorScheme scheme = ColorScheme.light(); const ColorScheme scheme = ColorScheme.light();
expect(scheme.primary, const Color(0xff6200ee)); expect(scheme.primary, const Color(0xff6200ee));
...@@ -26,7 +26,7 @@ void main() { ...@@ -26,7 +26,7 @@ void main() {
}); });
test('dark scheme matches the spec', () { 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 // https://material.io/design/color/dark-theme.html#ui-application
const ColorScheme scheme = ColorScheme.dark(); const ColorScheme scheme = ColorScheme.dark();
expect(scheme.primary, const Color(0xffbb86fc)); expect(scheme.primary, const Color(0xffbb86fc));
......
...@@ -711,7 +711,7 @@ void main() { ...@@ -711,7 +711,7 @@ void main() {
onSelected: (String result) { }, onSelected: (String result) { },
itemBuilder: (BuildContext context) { itemBuilder: (BuildContext context) {
return <PopupMenuEntry<String>>[ 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. // is 48 and the height of the text is less than 48.
const PopupMenuItem<String>( const PopupMenuItem<String>(
value: '0', value: '0',
......
...@@ -1367,7 +1367,7 @@ void main() { ...@@ -1367,7 +1367,7 @@ void main() {
final Offset bottomRight = tester.getBottomRight(find.byType(RangeSlider)).translate(-24, 0); final Offset bottomRight = tester.getBottomRight(find.byType(RangeSlider)).translate(-24, 0);
final Offset middle = topLeft + bottomRight / 2; 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; final Offset leftTarget = topLeft + (bottomRight - topLeft) * 0.3;
await tester.dragFrom(leftTarget, middle - leftTarget); await tester.dragFrom(leftTarget, middle - leftTarget);
await tester.pumpAndSettle(); await tester.pumpAndSettle();
...@@ -1437,7 +1437,7 @@ void main() { ...@@ -1437,7 +1437,7 @@ void main() {
final Offset bottomRight = tester.getBottomRight(find.byType(RangeSlider)).translate(-24, 0); final Offset bottomRight = tester.getBottomRight(find.byType(RangeSlider)).translate(-24, 0);
final Offset middle = topLeft + bottomRight / 2; 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; final Offset leftTarget = topLeft + (bottomRight - topLeft) * 0.3;
await tester.dragFrom(leftTarget, middle - leftTarget); await tester.dragFrom(leftTarget, middle - leftTarget);
await tester.pumpAndSettle(); await tester.pumpAndSettle();
...@@ -1511,7 +1511,7 @@ void main() { ...@@ -1511,7 +1511,7 @@ void main() {
final Offset bottomRight = tester.getBottomRight(find.byType(RangeSlider)).translate(-24, 0); final Offset bottomRight = tester.getBottomRight(find.byType(RangeSlider)).translate(-24, 0);
final Offset middle = topLeft + bottomRight / 2; 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; final Offset leftTarget = topLeft + (bottomRight - topLeft) * 0.3;
await tester.dragFrom(leftTarget, middle - leftTarget); await tester.dragFrom(leftTarget, middle - leftTarget);
await tester.pumpAndSettle(); 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