Fix typos (#121171)
* Fix typos * lowercase animated & opacity * Undo typo fix --------- Co-authored-by: Michael Goderbauer <goderbauer@google.com>
This commit is contained in:
@@ -46,7 +46,7 @@ class WindowClassRegistrar {
|
||||
public:
|
||||
~WindowClassRegistrar() = default;
|
||||
|
||||
// Returns the singleton registar instance.
|
||||
// Returns the singleton registrar instance.
|
||||
static WindowClassRegistrar* GetInstance() {
|
||||
if (!instance_) {
|
||||
instance_ = new WindowClassRegistrar();
|
||||
|
||||
@@ -80,7 +80,7 @@ class Win32Window {
|
||||
// OS callback called by message pump. Handles the WM_NCCREATE message which
|
||||
// is passed when the non-client area is being created and enables automatic
|
||||
// non-client DPI scaling so that the non-client area automatically
|
||||
// responsponds to changes in DPI. All other messages are handled by
|
||||
// responds to changes in DPI. All other messages are handled by
|
||||
// MessageHandler.
|
||||
static LRESULT CALLBACK WndProc(HWND const window,
|
||||
UINT const message,
|
||||
|
||||
@@ -201,7 +201,7 @@ class HomePage extends StatelessWidget {
|
||||
),
|
||||
ElevatedButton(
|
||||
key: const Key(kColorFilterWithUnstableChildName),
|
||||
child: const Text('Color Filter with Ustable Child'),
|
||||
child: const Text('Color Filter with Unstable Child'),
|
||||
onPressed: () {
|
||||
Navigator.pushNamed(context, kColorFilterWithUnstableChildName);
|
||||
},
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
import 'dart:ui' as ui;
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
// Various tests to verify that Animated image filtered layers do not
|
||||
// Various tests to verify that animated image filtered layers do not
|
||||
// dirty children even without explicit repaint boundaries. These intentionally use
|
||||
// text to ensure we don't measure the opacity peephole case.
|
||||
class AnimatedComplexImageFiltered extends StatefulWidget {
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
// Various tests to verify that Aniamted opacity layers (i.e. FadeTransition) do not
|
||||
// Various tests to verify that animated opacity layers (i.e. FadeTransition) do not
|
||||
// dirty children even without explicit repaint boundaries. These intentionally use
|
||||
// text to ensure we don't measure the opacity peephole case.
|
||||
class AnimatedComplexOpacity extends StatefulWidget {
|
||||
|
||||
@@ -8,7 +8,7 @@ import 'package:flutter/material.dart';
|
||||
|
||||
import '../common.dart';
|
||||
|
||||
// Various tests to verify that the Opacity layer propagates the opacity to various
|
||||
// Various tests to verify that the opacity layer propagates the opacity to various
|
||||
// combinations of children that can apply it themselves.
|
||||
// See https://github.com/flutter/flutter/issues/75697
|
||||
class OpacityPeepholePage extends StatelessWidget {
|
||||
|
||||
@@ -1859,7 +1859,7 @@ Future<void> verifyTabooDocumentation(String workingDirectory, { int minimumMatc
|
||||
if (errors.isNotEmpty) {
|
||||
foundError(<String>[
|
||||
'${bold}Avoid the word "simply" in documentation. See https://github.com/flutter/flutter/wiki/Style-guide-for-Flutter-repo#use-the-passive-voice-recommend-do-not-require-never-say-things-are-simple for details.$reset',
|
||||
'${bold}In many cases thes words can be omitted without loss of generality; in other cases it may require a bit of rewording to avoid implying that the task is simple.$reset',
|
||||
'${bold}In many cases these words can be omitted without loss of generality; in other cases it may require a bit of rewording to avoid implying that the task is simple.$reset',
|
||||
'${bold}Similarly, avoid using "note:" or the phrase "note that". See https://github.com/flutter/flutter/wiki/Style-guide-for-Flutter-repo#avoid-empty-prose for details.$reset',
|
||||
...errors,
|
||||
]);
|
||||
|
||||
@@ -385,7 +385,7 @@ class _SnippetChecker {
|
||||
|
||||
/// A RegExp that matches the start of a code block within a regular comment.
|
||||
/// Such blocks are not analyzed. They can be used to give sample code for
|
||||
/// internal (private) APIs where visibilty would make analyzing the sample
|
||||
/// internal (private) APIs where visibility would make analyzing the sample
|
||||
/// code problematic.
|
||||
static final RegExp _uncheckedCodeBlockStartRegex = RegExp(r'^ *// *```dart$');
|
||||
|
||||
@@ -419,7 +419,7 @@ class _SnippetChecker {
|
||||
/// A RegExp that matches a line that ends with a semicolon (and maybe a comment)
|
||||
static final RegExp _trailingSemicolonRegExp = RegExp(r'^(.*);(| *//.*)$');
|
||||
|
||||
/// A RegExp that matches a line that ends with a closing blace (and maybe a comment)
|
||||
/// A RegExp that matches a line that ends with a closing brace (and maybe a comment)
|
||||
static final RegExp _trailingCloseBraceRegExp = RegExp(r'^(.*)}(| *//.*)$');
|
||||
|
||||
/// A RegExp that matches a line that only contains a commented-out ellipsis
|
||||
|
||||
@@ -287,7 +287,7 @@ class ArchiveCreator {
|
||||
/// Used when an output filename is not given.
|
||||
Future<String> get _archiveName async {
|
||||
final String os = platform.operatingSystem.toLowerCase();
|
||||
// Include the intended host archetecture in the file name for non-x64.
|
||||
// Include the intended host architecture in the file name for non-x64.
|
||||
final String arch = await _dartArch == 'x64' ? '' : '${await _dartArch}_';
|
||||
// We don't use .tar.xz on Mac because although it can unpack them
|
||||
// on the command line (with tar), the "Archive Utility" that runs
|
||||
@@ -330,7 +330,7 @@ class ArchiveCreator {
|
||||
/// Validates the integrity of the release package.
|
||||
///
|
||||
/// Currently only checks that macOS binaries are codesigned. Will throw a
|
||||
/// [PreparePackageException] if the test failes.
|
||||
/// [PreparePackageException] if the test fails.
|
||||
Future<void> _validate() async {
|
||||
// Only validate in strict mode, which means `--publish`
|
||||
if (!strict || !platform.isMacOS) {
|
||||
|
||||
@@ -18,7 +18,7 @@ import 'common.dart';
|
||||
void expectExitCode(ProcessResult result, int expectedExitCode) {
|
||||
if (result.exitCode != expectedExitCode) {
|
||||
fail(
|
||||
'Process ${result.pid} exitted with the wrong exit code.\n'
|
||||
'Process ${result.pid} exited with the wrong exit code.\n'
|
||||
'\n'
|
||||
'EXPECTED: exit code $expectedExitCode\n'
|
||||
'ACTUAL: exit code ${result.exitCode}\n'
|
||||
|
||||
@@ -26,7 +26,7 @@ abstract class Context {
|
||||
|
||||
/// Confirm an action with the user before proceeding.
|
||||
///
|
||||
/// The default implementation reads from STDIN. This can be overriden in UI
|
||||
/// The default implementation reads from STDIN. This can be overridden in UI
|
||||
/// implementations that capture user interaction differently.
|
||||
Future<bool> prompt(String message) async {
|
||||
stdio.write('${message.trim()} (y/n) ');
|
||||
|
||||
@@ -695,7 +695,7 @@ class FrameworkRepository extends Repository {
|
||||
|
||||
/// Create a release candidate branch version file.
|
||||
///
|
||||
/// This file allows for easily traversing what candidadate branch was used
|
||||
/// This file allows for easily traversing what candidate branch was used
|
||||
/// from a release channel.
|
||||
///
|
||||
/// Returns [true] if the version file was updated and a commit is needed.
|
||||
|
||||
@@ -6,7 +6,7 @@ import 'dart:async';
|
||||
import 'dart:convert';
|
||||
import 'dart:io';
|
||||
|
||||
/// Reades through the print commands from [process] waiting for the magic phase
|
||||
/// Reads through the print commands from [process] waiting for the magic phase
|
||||
/// that contains microbenchmarks results as defined in
|
||||
/// `dev/benchmarks/microbenchmarks/lib/common.dart`.
|
||||
Future<Map<String, double>> readJsonResults(Process process) {
|
||||
|
||||
@@ -33,7 +33,7 @@ Future<TaskResult> flutterToolStartupBenchmarkTask() async {
|
||||
).run())
|
||||
.asMap('flutter_tool_startup_test'),
|
||||
|
||||
// `flutter test -d foo_device` in dir woth no `test` folder.
|
||||
// `flutter test -d foo_device` in dir with no `test` folder.
|
||||
...(await _Benchmark(
|
||||
projectDirectory,
|
||||
'test startup with specified device',
|
||||
|
||||
@@ -82,8 +82,8 @@ public class MainActivity extends FlutterActivity implements MethodChannel.Metho
|
||||
public void onRequestPermissionsResult(int requestCode, String[] permissions, int[] grantResults) {
|
||||
if (requestCode != STORAGE_PERMISSION_CODE || permissionResult == null)
|
||||
return;
|
||||
boolean permisisonGranted = grantResults.length > 0 && grantResults[0] == PackageManager.PERMISSION_GRANTED;
|
||||
sendPermissionResult(permisisonGranted);
|
||||
boolean permissionGranted = grantResults.length > 0 && grantResults[0] == PackageManager.PERMISSION_GRANTED;
|
||||
sendPermissionResult(permissionGranted);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -110,7 +110,7 @@ class Board extends IterableMixin<BoardPoint?> {
|
||||
return distanceFromCenter <= boardRadius;
|
||||
}
|
||||
|
||||
// Get the distance between two BoardPoins.
|
||||
// Get the distance between two BoardPoints.
|
||||
static int getDistance(BoardPoint a, BoardPoint b) {
|
||||
final Vector3 a3 = a.cubeCoordinates;
|
||||
final Vector3 b3 = b.cubeCoordinates;
|
||||
|
||||
@@ -64,7 +64,7 @@ class WindowClassRegistrar {
|
||||
public:
|
||||
~WindowClassRegistrar() = default;
|
||||
|
||||
// Returns the singleton registar instance.
|
||||
// Returns the singleton registrar instance.
|
||||
static WindowClassRegistrar* GetInstance() {
|
||||
if (!instance_) {
|
||||
instance_ = new WindowClassRegistrar();
|
||||
|
||||
@@ -81,7 +81,7 @@ class Win32Window {
|
||||
// OS callback called by message pump. Handles the WM_NCCREATE message which
|
||||
// is passed when the non-client area is being created and enables automatic
|
||||
// non-client DPI scaling so that the non-client area automatically
|
||||
// responsponds to changes in DPI. All other messages are handled by
|
||||
// responds to changes in DPI. All other messages are handled by
|
||||
// MessageHandler.
|
||||
static LRESULT CALLBACK WndProc(HWND const window,
|
||||
UINT const message,
|
||||
|
||||
@@ -143,8 +143,8 @@ public class MainActivity extends FlutterActivity implements MethodChannel.Metho
|
||||
public void onRequestPermissionsResult(int requestCode, String[] permissions, int[] grantResults) {
|
||||
if (requestCode != STORAGE_PERMISSION_CODE || permissionResult == null)
|
||||
return;
|
||||
boolean permisisonGranted = grantResults.length > 0 && grantResults[0] == PackageManager.PERMISSION_GRANTED;
|
||||
sendPermissionResult(permisisonGranted);
|
||||
boolean permissionGranted = grantResults.length > 0 && grantResults[0] == PackageManager.PERMISSION_GRANTED;
|
||||
sendPermissionResult(permissionGranted);
|
||||
}
|
||||
|
||||
private void getExternalStoragePermissions() {
|
||||
|
||||
@@ -64,7 +64,7 @@ class WindowClassRegistrar {
|
||||
public:
|
||||
~WindowClassRegistrar() = default;
|
||||
|
||||
// Returns the singleton registar instance.
|
||||
// Returns the singleton registrar instance.
|
||||
static WindowClassRegistrar* GetInstance() {
|
||||
if (!instance_) {
|
||||
instance_ = new WindowClassRegistrar();
|
||||
|
||||
@@ -81,7 +81,7 @@ class Win32Window {
|
||||
// OS callback called by message pump. Handles the WM_NCCREATE message which
|
||||
// is passed when the non-client area is being created and enables automatic
|
||||
// non-client DPI scaling so that the non-client area automatically
|
||||
// responsponds to changes in DPI. All other messages are handled by
|
||||
// responds to changes in DPI. All other messages are handled by
|
||||
// MessageHandler.
|
||||
static LRESULT CALLBACK WndProc(HWND const window,
|
||||
UINT const message,
|
||||
|
||||
@@ -64,7 +64,7 @@ class WindowClassRegistrar {
|
||||
public:
|
||||
~WindowClassRegistrar() = default;
|
||||
|
||||
// Returns the singleton registar instance.
|
||||
// Returns the singleton registrar instance.
|
||||
static WindowClassRegistrar* GetInstance() {
|
||||
if (!instance_) {
|
||||
instance_ = new WindowClassRegistrar();
|
||||
|
||||
@@ -81,7 +81,7 @@ class Win32Window {
|
||||
// OS callback called by message pump. Handles the WM_NCCREATE message which
|
||||
// is passed when the non-client area is being created and enables automatic
|
||||
// non-client DPI scaling so that the non-client area automatically
|
||||
// responsponds to changes in DPI. All other messages are handled by
|
||||
// responds to changes in DPI. All other messages are handled by
|
||||
// MessageHandler.
|
||||
static LRESULT CALLBACK WndProc(HWND const window,
|
||||
UINT const message,
|
||||
|
||||
@@ -64,7 +64,7 @@ class WindowClassRegistrar {
|
||||
public:
|
||||
~WindowClassRegistrar() = default;
|
||||
|
||||
// Returns the singleton registar instance.
|
||||
// Returns the singleton registrar instance.
|
||||
static WindowClassRegistrar* GetInstance() {
|
||||
if (!instance_) {
|
||||
instance_ = new WindowClassRegistrar();
|
||||
|
||||
@@ -81,7 +81,7 @@ class Win32Window {
|
||||
// OS callback called by message pump. Handles the WM_NCCREATE message which
|
||||
// is passed when the non-client area is being created and enables automatic
|
||||
// non-client DPI scaling so that the non-client area automatically
|
||||
// responsponds to changes in DPI. All other messages are handled by
|
||||
// responds to changes in DPI. All other messages are handled by
|
||||
// MessageHandler.
|
||||
static LRESULT CALLBACK WndProc(HWND const window,
|
||||
UINT const message,
|
||||
|
||||
@@ -437,7 +437,7 @@ void sanityCheckDocs([Platform platform = const LocalPlatform()]) {
|
||||
|
||||
// Check a "dartpad" example, any one will do, and check for the correct URL
|
||||
// arguments.
|
||||
// Just use "master" for any branch other than the LUCH_BRANCH.
|
||||
// Just use "master" for any branch other than the LUCI_BRANCH.
|
||||
final String? luciBranch = platform.environment['LUCI_BRANCH']?.trim();
|
||||
final String expectedBranch = luciBranch != null && luciBranch.isNotEmpty ? luciBranch : 'master';
|
||||
final List<String> argumentRegExps = <String>[
|
||||
|
||||
@@ -9,8 +9,8 @@ import 'logical_key_data.dart';
|
||||
import 'physical_key_data.dart';
|
||||
import 'utils.dart';
|
||||
|
||||
String _toUpperCammel(String lowerCammel) {
|
||||
return lowerCammel.substring(0, 1).toUpperCase() + lowerCammel.substring(1);
|
||||
String _toUpperCamel(String lowerCamel) {
|
||||
return lowerCamel.substring(0, 1).toUpperCase() + lowerCamel.substring(1);
|
||||
}
|
||||
|
||||
/// Generates the common/testing/key_codes.h based on the information in the key
|
||||
@@ -23,7 +23,7 @@ class KeyCodesCcGenerator extends BaseCodeGenerator {
|
||||
final OutputLines<int> lines = OutputLines<int>('Physical Key list');
|
||||
for (final PhysicalKeyEntry entry in keyData.entries) {
|
||||
lines.add(entry.usbHidCode, '''
|
||||
constexpr uint64_t kPhysical${_toUpperCammel(entry.constantName)} = ${toHex(entry.usbHidCode)};''');
|
||||
constexpr uint64_t kPhysical${_toUpperCamel(entry.constantName)} = ${toHex(entry.usbHidCode)};''');
|
||||
}
|
||||
return lines.sortedJoin().trimRight();
|
||||
}
|
||||
@@ -33,7 +33,7 @@ constexpr uint64_t kPhysical${_toUpperCammel(entry.constantName)} = ${toHex(entr
|
||||
final OutputLines<int> lines = OutputLines<int>('Logical Key list', behavior: DeduplicateBehavior.kSkip);
|
||||
for (final LogicalKeyEntry entry in logicalData.entries) {
|
||||
lines.add(entry.value, '''
|
||||
constexpr uint64_t kLogical${_toUpperCammel(entry.constantName)} = ${toHex(entry.value, digits: 11)};''');
|
||||
constexpr uint64_t kLogical${_toUpperCamel(entry.constantName)} = ${toHex(entry.value, digits: 11)};''');
|
||||
}
|
||||
return lines.sortedJoin().trimRight();
|
||||
}
|
||||
|
||||
@@ -9,9 +9,9 @@ import 'logical_key_data.dart';
|
||||
import 'physical_key_data.dart';
|
||||
import 'utils.dart';
|
||||
|
||||
String _toUpperSnake(String lowerCammel) {
|
||||
String _toUpperSnake(String lowerCamel) {
|
||||
// Converts 'myTVFoo' to 'myTvFoo'.
|
||||
final String trueUpperCammel = lowerCammel.replaceAllMapped(
|
||||
final String trueUpperCamel = lowerCamel.replaceAllMapped(
|
||||
RegExp(r'([A-Z]{3,})'),
|
||||
(Match match) {
|
||||
final String matched = match.group(1)!;
|
||||
@@ -20,7 +20,7 @@ String _toUpperSnake(String lowerCammel) {
|
||||
+ matched.substring(matched.length - 2, matched.length - 1);
|
||||
});
|
||||
// Converts 'myTvFoo' to 'MY_TV_FOO'.
|
||||
return trueUpperCammel.replaceAllMapped(
|
||||
return trueUpperCamel.replaceAllMapped(
|
||||
RegExp(r'([A-Z])'),
|
||||
(Match match) => '_${match.group(1)!}').toUpperCase();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user