Unverified Commit 7a88eb97 authored by Shi-Hao Hong's avatar Shi-Hao Hong Committed by GitHub

Typo fixes (#78755)

parent 2eca1f40
......@@ -4,7 +4,7 @@ This directory exists to support building Flutter on our build infrastructure.
Flutter build results are available at:
* https://flutter-dashboard.appspot.com/#/build
- Aggregate dashboard of the the separate CI systems used by Flutter.
- Aggregate dashboard of the separate CI systems used by Flutter.
* https://cirrus-ci.com/github/flutter/flutter/master
- Testing is done on PRs and submitted changes on GitHub.
* https://ci.chromium.org/p/flutter/
......
......@@ -976,7 +976,7 @@ class _RenderSegmentedControl<T> extends RenderBox
// This method is used to convert the original unscaled thumb rect painted in
// the previous frame, to a Rect that is within the valid boundary defined by
// the the child segments.
// the child segments.
//
// The overall size does not include that of the thumb. That is, if the thumb
// is located at the first or the last segment, the thumb can get cut off if
......
......@@ -287,7 +287,7 @@ class NavigationRail extends StatefulWidget {
/// a copy of the [IconThemeData.fallback] with a custom [NavigationRail]
/// specific color will be used.
///
/// The default value is Is the [Theme]'s [ThemeData.iconTheme] with a color
/// The default value is the [Theme]'s [ThemeData.iconTheme] with a color
/// of the [Theme]'s [ColorScheme.onSurface] with an opacity of 0.64.
/// Properties from this icon theme, or
/// [NavigationRailThemeData.unselectedIconTheme] if this is null, are
......@@ -299,7 +299,7 @@ class NavigationRail extends StatefulWidget {
/// When a [NavigationRailDestination] is not selected,
/// [unselectedIconTheme] will be used.
///
/// The default value is Is the [Theme]'s [ThemeData.iconTheme] with a color
/// The default value is the [Theme]'s [ThemeData.iconTheme] with a color
/// of the [Theme]'s [ColorScheme.primary]. Properties from this icon theme,
/// or [NavigationRailThemeData.selectedIconTheme] if this is null, are
/// merged into the defaults.
......
......@@ -296,7 +296,7 @@ class Draggable<T extends Object> extends StatefulWidget {
)
final DragAnchor dragAnchor;
/// A strategy that is used by this draggable to get the the anchor offset when it is dragged.
/// A strategy that is used by this draggable to get the anchor offset when it is dragged.
///
/// The anchor offset refers to the distance between the users' fingers and the [feedback] widget when this draggable is dragged.
///
......
......@@ -146,7 +146,7 @@ class RouteInformation {
/// considered unusual for these delegates to change during the lifetime of the
/// [Router].
///
/// If the [Router] itself is disposed while an an asynchronous operation is in
/// If the [Router] itself is disposed while an asynchronous operation is in
/// progress, all active asynchronous operations will have their results
/// discarded also.
///
......@@ -1108,7 +1108,7 @@ abstract class RouterDelegate<T> extends Listenable {
/// When overriding this method, the configuration returned by this getter
/// must be able to construct the current app state and build the widget
/// with the same configuration in the [build] method if it is passed back
/// to the the [setNewRoutePath]. Otherwise, the browser backward and forward
/// to the [setNewRoutePath]. Otherwise, the browser backward and forward
/// buttons will not work properly.
///
/// By default, this getter returns null, which prevents the [Router] from
......
......@@ -1490,7 +1490,6 @@ void main() {
expect(tester.widget<Container>(find.widgetWithText(Container, 'Item 3')).padding, const EdgeInsets.all(20));
});
testWidgets('Update PopupMenuItem layout while the menu is visible', (WidgetTester tester) async {
final Key popupMenuButtonKey = UniqueKey();
final Type menuItemType = const PopupMenuItem<String>(child: Text('item')).runtimeType;
......
......@@ -11,7 +11,7 @@ import 'package:flutter_test/flutter_test.dart';
import '../rendering/mock_canvas.dart';
// The const represents the the starting position of the scrollbar thumb for
// The const represents the starting position of the scrollbar thumb for
// the below tests. The thumb is 90 pixels long, and 8 pixels wide, with a 2
// pixel margin to the right edge of the viewport.
const Rect _kMaterialDesignInitialThumbRect = Rect.fromLTRB(790.0, 0.0, 798.0, 90.0);
......
......@@ -175,7 +175,7 @@ class TestCase {
return false;
}
}
// Copy the test files into the the tmpdir's lib directory.
// Copy the test files into the tmpdir's lib directory.
for (final File file in tests) {
String destination = tmpdir.path;
try {
......
......@@ -248,17 +248,17 @@
"dateInputLabel": "Enter Date",
"@dateInputLabel": {
"description": "The label used to describe the input text field used in in the date picker."
"description": "The label used to describe the input text field used in the date picker."
},
"dateRangeStartLabel": "Start Date",
"@dateRangeStartLabel": {
"description": "The label used to describe the starting date input text field used in in the date range picker."
"description": "The label used to describe the starting date input text field used in the date range picker."
},
"dateRangeEndLabel": "End Date",
"@dateRangeEndLabel": {
"description": "The label used to describe the ending date input text field used in in the date range picker."
"description": "The label used to describe the ending date input text field used in the date range picker."
},
"dateRangeStartDateSemanticLabel": "Start date $fullDate",
......
......@@ -436,7 +436,7 @@ class _ContrastReport {
///
/// Given a list of integers [colors], each representing the color of a pixel
/// on a part of the screen, generates a contrast ratio report.
/// Each colors is given in in ARGB format, as is the parameter for the
/// Each colors is given in ARGB format, as is the parameter for the
/// constructor [Color].
///
/// The contrast ratio of the most frequent light color and the most
......
......@@ -214,7 +214,7 @@ class FlutterPlugin implements Plugin<Project> {
project.android.buildTypes.all this.&addFlutterDependencies
}
private static Boolean shouldShrinkResources(Project project) {
private static Boolean shouldShrinkResources(Project project) {
if (project.hasProperty("shrink")) {
return project.property("shrink").toBoolean()
}
......@@ -595,7 +595,7 @@ class FlutterPlugin implements Plugin<Project> {
/**
* Gets the directory that contains the Flutter source code.
* This is the the directory containing the `android/` directory.
* This is the directory containing the `android/` directory.
*/
private File getFlutterSourceDirectory() {
if (project.flutter.source == null) {
......@@ -842,7 +842,7 @@ class FlutterPlugin implements Plugin<Project> {
}
return copyFlutterAssetsTask
} // end def addFlutterDeps
if (isFlutterAppProject()) {
project.android.applicationVariants.all { variant ->
Task assembleTask = getAssembleTask(variant)
......
......@@ -55,7 +55,7 @@ abstract class PersistentToolState {
/// Whether this client was already determined to be or not be a bot.
bool isRunningOnBot;
/// The last time the the DevTools package was activated from pub.
/// The last time the DevTools package was activated from pub.
DateTime lastDevToolsActivationTime;
}
......
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