Fix some typos (#110077)

This commit is contained in:
eggfly 2022-08-24 21:56:09 +08:00 committed by GitHub
parent 464c8a9901
commit cf309b61b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 6 additions and 6 deletions

View File

@ -121,7 +121,7 @@ class InkSparkle extends InteractiveInkFeature {
_clipCallback = _getClipCallback(referenceBox, containedInkWell, rectCallback),
super(controller: controller, referenceBox: referenceBox) {
// InkSparkle will not be painted until the async compilation completes.
_InkSparkleFactory.compileShaderIfNeccessary();
_InkSparkleFactory.compileShaderIfNecessary();
controller.addInkFeature(this);
// All animation values are derived from Android 12 source code. See:
@ -270,7 +270,7 @@ class InkSparkle extends InteractiveInkFeature {
// InkSparkle can only paint if its shader has been compiled.
if (_InkSparkleFactory._shaderManager == null) {
// Skipping paintFeature because the shader it relies on is not ready to
// be used. InkSparkleFactory.compileShaderIfNeccessary must complete
// be used. InkSparkleFactory.compileShaderIfNecessary must complete
// before InkSparkle can paint.
return;
}
@ -430,7 +430,7 @@ class _InkSparkleFactory extends InteractiveInkFeatureFactory {
const _InkSparkleFactory.constantTurbulenceSeed() : turbulenceSeed = 1337.0;
static void compileShaderIfNeccessary() {
static void compileShaderIfNecessary() {
if (!_initCalled) {
FragmentShaderManager.inkSparkle().then((FragmentShaderManager manager) {
_shaderManager = manager;

View File

@ -139,7 +139,7 @@ class SkiaGoldClient {
/// backend, the `init` argument initializes the current test. Used by the
/// [FlutterPostSubmitFileComparator].
Future<void> imgtestInit() async {
// This client has already been intialized
// This client has already been initialized
if (_initialized) {
return;
}

View File

@ -594,7 +594,7 @@ String getDartNameForDarwinArch(DarwinArch arch) {
// Returns Apple's name for the specified target architecture.
//
// When invoking Apple tools such as `xcodebuild` or `lipo`, the tool often
// passes one or more target architectures as paramters. The names returned by
// passes one or more target architectures as parameters. The names returned by
// this function reflect Apple's name for the specified architecture.
//
// For consistency with developer expectations, Flutter outputs also use these

View File

@ -67,7 +67,7 @@ INTEGRATION_TEST_IOS_RUNNER(RunnerTests)
XCTAssertEqualObjects([FLTIntegrationTestRunner
testCaseNameFromDartTestName:@"VALIDATE multi-point 🚀 UNICODE123: 😁"], @"testValidateMultiPointUnicode123");
XCTAssertEqualObjects([FLTIntegrationTestRunner
testCaseNameFromDartTestName:@"!UPPERCASE:\\ lower_seperate?"], @"testUppercaseLowerSeperate");
testCaseNameFromDartTestName:@"!UPPERCASE:\\ lower_separate?"], @"testUppercaseLowerSeparate");
}
- (void)testDuplicatedDartTests {