From e7726ea6f288e79d41e95f6b0b2a1e89921c50e6 Mon Sep 17 00:00:00 2001 From: Binni Goel <41873024+droidbg@users.noreply.github.com> Date: Wed, 1 Nov 2023 04:57:03 +0530 Subject: [PATCH] fix. typos (#137178) ## Description This PR fixes typos in - `checkbox.dart` - `chip_test.dart` - `color_scheme.dart` - `color_scheme_test.dart` - `curves.dart` --- packages/flutter/lib/src/cupertino/checkbox.dart | 2 +- packages/flutter/lib/src/material/color_scheme.dart | 4 ++-- packages/flutter/test/material/chip_test.dart | 2 +- packages/flutter/test/material/color_scheme_test.dart | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/flutter/lib/src/cupertino/checkbox.dart b/packages/flutter/lib/src/cupertino/checkbox.dart index 2eb3355c18..b0ba4ce741 100644 --- a/packages/flutter/lib/src/cupertino/checkbox.dart +++ b/packages/flutter/lib/src/cupertino/checkbox.dart @@ -338,7 +338,7 @@ class _CheckboxPainter extends ToggleablePainter { final Path path = Path(); // The ratios for the offsets below were found from looking at the checkbox // examples on in the HIG docs. The distance from the needed point to the - // edge was measured, then devided by the total width. + // edge was measured, then divided by the total width. const Offset start = Offset(CupertinoCheckbox.width * 0.25, CupertinoCheckbox.width * 0.52); const Offset mid = Offset(CupertinoCheckbox.width * 0.46, CupertinoCheckbox.width * 0.75); const Offset end = Offset(CupertinoCheckbox.width * 0.72, CupertinoCheckbox.width * 0.29); diff --git a/packages/flutter/lib/src/material/color_scheme.dart b/packages/flutter/lib/src/material/color_scheme.dart index 98d29c3c17..8b02b0ba85 100644 --- a/packages/flutter/lib/src/material/color_scheme.dart +++ b/packages/flutter/lib/src/material/color_scheme.dart @@ -998,7 +998,7 @@ class ColorScheme with Diagnosticable { /// /// Material Color Utilities extracts the dominant color from the /// supplied [ImageProvider]. Using this color, a [ColorScheme] is generated - /// with harmnonious colors that meet contrast requirements for accessibility. + /// with harmonious colors that meet contrast requirements for accessibility. /// /// If any of the optional color parameters are non-null, they will be /// used in place of the generated colors for that field in the resulting @@ -1026,7 +1026,7 @@ class ColorScheme with Diagnosticable { /// * , the /// Material 3 Color system specification. /// * , the package - /// used to algorightmically determine the dominant color and to generate + /// used to algorithmically determine the dominant color and to generate /// the [ColorScheme]. static Future fromImageProvider({ required ImageProvider provider, diff --git a/packages/flutter/test/material/chip_test.dart b/packages/flutter/test/material/chip_test.dart index 879cce5cc1..77098ff7bb 100644 --- a/packages/flutter/test/material/chip_test.dart +++ b/packages/flutter/test/material/chip_test.dart @@ -1778,7 +1778,7 @@ void main() { labelStyle: TextStyle(height: 4), // inherit: true ), ), - child: const Chip(label: Text('Label')), // labeStyle: null + child: const Chip(label: Text('Label')), // labelStyle: null ), ); } diff --git a/packages/flutter/test/material/color_scheme_test.dart b/packages/flutter/test/material/color_scheme_test.dart index d1e05c17f0..d830ac92de 100644 --- a/packages/flutter/test/material/color_scheme_test.dart +++ b/packages/flutter/test/material/color_scheme_test.dart @@ -430,7 +430,7 @@ void main() { }, skip: isBrowser, // [intended] uses dart:isolate and io. ); - test('fromImageProvider() propogates TimeoutException when image cannot be rendered', () async { + test('fromImageProvider() propagates TimeoutException when image cannot be rendered', () async { final Uint8List blueSquareBytes = Uint8List.fromList(kBlueSquarePng); // Corrupt the image's bytelist so it cannot be read.