Skip to content

Commit a60bf8e

Browse files
authored
Spell check of Flutter docs (flutter#45200)
No code changes, just comments: I spell-checked all the comments in the repo.
1 parent fcb40a0 commit a60bf8e

File tree

103 files changed

+188
-188
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

103 files changed

+188
-188
lines changed

dev/bots/flutter_compact_formatter.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ class FlutterCompactFormatter {
5050
/// this is Windows or not outputting to a terminal.
5151
String get _noColor => useColor ? '\u001b[0m' : '';
5252

53-
/// The termianl escape for clearing the line, or a carriage return if
54-
/// this is Windows or not outputting to a termianl.
53+
/// The terminal escape for clearing the line, or a carriage return if
54+
/// this is Windows or not outputting to a terminal.
5555
String get _clearLine => useColor ? '\x1b[2K\r' : '\r';
5656

5757
final Map<int, TestResult> _tests = <int, TestResult>{};

dev/bots/test.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -961,7 +961,7 @@ Future<String> verifyVersion(File file) async {
961961
}
962962

963963
/// If the CIRRUS_TASK_NAME environment variable exists, we use that to determine
964-
/// the shard and subshard (parsing it in the form shard-subshard-platform, ignoring
964+
/// the shard and sub-shard (parsing it in the form shard-subshard-platform, ignoring
965965
/// the platform).
966966
///
967967
/// However, for local testing you can just set the SHARD and SUBSHARD

dev/devicelab/bin/tasks/gradle_plugin_dependencies_test.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import 'package:path/path.dart' as path;
1313
final String gradlew = Platform.isWindows ? 'gradlew.bat' : 'gradlew';
1414
final String gradlewExecutable = Platform.isWindows ? '.\\$gradlew' : './$gradlew';
1515

16-
/// Tests that projects can include plugins that have a transtive dependency in common.
16+
/// Tests that projects can include plugins that have a transitive dependency in common.
1717
/// For more info see: https://github.com/flutter/flutter/issues/27254.
1818
Future<void> main() async {
1919
await task(() async {

dev/devicelab/bin/tasks/gradle_r8_test.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import 'package:flutter_devicelab/framework/utils.dart';
1010
import 'package:path/path.dart' as path;
1111

1212
/// Tests that flutter build apk uses R8 by default by adding an
13-
/// invalid proguard rule and evaluating the error message.
13+
/// invalid ProGuard rule and evaluating the error message.
1414
Future<void> main() async {
1515
await task(() async {
1616

dev/devicelab/lib/framework/framework.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ bool _isTaskRegistered = false;
2525
/// The task does not run immediately but waits for the request via the
2626
/// VM service protocol to run it.
2727
///
28-
/// It is ok for a [task] to perform many things. However, only one task can be
28+
/// It is OK for a [task] to perform many things. However, only one task can be
2929
/// registered per Dart VM.
3030
Future<TaskResult> task(TaskFunction task) {
3131
if (_isTaskRegistered)
@@ -143,7 +143,7 @@ class _TaskRunner {
143143
});
144144
}
145145

146-
/// Disables the keep-alive port, allowing the VM to exit.
146+
/// Disables the keepalive port, allowing the VM to exit.
147147
void _closeKeepAlivePort() {
148148
_startTaskTimeout?.cancel();
149149
_keepAlivePort?.close();

dev/devicelab/lib/framework/utils.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -602,7 +602,7 @@ int parseServicePort(String line, {
602602
return matches.isEmpty ? null : int.parse(matches[0].group(2));
603603
}
604604

605-
/// Tries to extract a Uri from the string.
605+
/// Tries to extract a URL from the string.
606606
///
607607
/// The `prefix`, if specified, is a regular expression pattern and must not contain groups.
608608
/// `prefix` defaults to the RegExp: `An Observatory debugger .* is available at: `.

examples/layers/rendering/src/sector_layout.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ class SectorParentData extends ParentData {
8888
/// * <https://en.wikipedia.org/wiki/Polar_coordinate_system>, which defines
8989
/// the polar coordinate space.
9090
/// * [RenderBox], which is the base class for [RenderObject]s that live in a
91-
/// cartesian coordinate space.
91+
/// Cartesian coordinate space.
9292
abstract class RenderSector extends RenderObject {
9393

9494
@override

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -642,7 +642,7 @@ class CupertinoColors {
642642
///
643643
/// {@tool sample}
644644
///
645-
/// The following code samples demostrate two cases where you have to manually
645+
/// The following code samples demonstrate two cases where you have to manually
646646
/// resolve a [CupertinoDynamicColor].
647647
///
648648
/// ```dart
@@ -926,16 +926,16 @@ class CupertinoDynamicColor extends Color with DiagnosticableMixin implements Di
926926
/// `data` is [CupertinoUserInterfaceLevelData.elevated]), the resolved
927927
/// [CupertinoDynamicColor] will be the same as this [CupertinoDynamicColor],
928928
/// except its effective color will be the `darkHighContrastElevatedColor` variant
929-
/// from the orignal [CupertinoDynamicColor].
929+
/// from the original [CupertinoDynamicColor].
930930
///
931931
/// Calling this function may create dependencies on the closest instance of some
932932
/// [InheritedWidget]s that enclose the given [BuildContext]. E.g., if [darkColor]
933933
/// is different from [color], this method will call [CupertinoTheme.of], and
934-
/// then [MediaQuery.of] if brightness wasn't specified in the theme data retrived
934+
/// then [MediaQuery.of] if brightness wasn't specified in the theme data retrieved
935935
/// from the previous [CupertinoTheme.of] call, in an effort to determine the
936936
/// brightness value.
937937
///
938-
/// If any of the required dependecies are missing from the given context, the
938+
/// If any of the required dependencies are missing from the given context, the
939939
/// default value of that trait will be used ([Brightness.light] platform
940940
/// brightness, normal contrast, [CupertinoUserInterfaceLevelData.base] elevation
941941
/// level), unless [nullOk] is set to false, in which case an exception will be

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1273,7 +1273,7 @@ class CupertinoTimerPicker extends StatefulWidget {
12731273
/// Callback called when the timer duration changes.
12741274
final ValueChanged<Duration> onTimerDurationChanged;
12751275

1276-
/// Defines how the timper picker should be positioned within its parent.
1276+
/// Defines how the timer picker should be positioned within its parent.
12771277
///
12781278
/// This property must not be null. It defaults to [Alignment.center].
12791279
final AlignmentGeometry alignment;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ class CupertinoIcons {
190190
/// A 25% charged battery.
191191
static const IconData battery_25_percent = IconData(0xf115, fontFamily: iconFont, fontPackage: iconFontPackage);
192192

193-
/// The bluetooth logo.
193+
/// The Bluetooth logo.
194194
static const IconData bluetooth = IconData(0xf116, fontFamily: iconFont, fontPackage: iconFontPackage);
195195

196196
/// A restart arrow, pointing downwards.

0 commit comments

Comments
 (0)