fix. typos (#137178)
## Description This PR fixes typos in - `checkbox.dart` - `chip_test.dart` - `color_scheme.dart` - `color_scheme_test.dart` - `curves.dart`
This commit is contained in:
parent
5160c5e184
commit
e7726ea6f2
@ -338,7 +338,7 @@ class _CheckboxPainter extends ToggleablePainter {
|
|||||||
final Path path = Path();
|
final Path path = Path();
|
||||||
// The ratios for the offsets below were found from looking at the checkbox
|
// 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
|
// 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 start = Offset(CupertinoCheckbox.width * 0.25, CupertinoCheckbox.width * 0.52);
|
||||||
const Offset mid = Offset(CupertinoCheckbox.width * 0.46, CupertinoCheckbox.width * 0.75);
|
const Offset mid = Offset(CupertinoCheckbox.width * 0.46, CupertinoCheckbox.width * 0.75);
|
||||||
const Offset end = Offset(CupertinoCheckbox.width * 0.72, CupertinoCheckbox.width * 0.29);
|
const Offset end = Offset(CupertinoCheckbox.width * 0.72, CupertinoCheckbox.width * 0.29);
|
||||||
|
@ -998,7 +998,7 @@ class ColorScheme with Diagnosticable {
|
|||||||
///
|
///
|
||||||
/// Material Color Utilities extracts the dominant color from the
|
/// Material Color Utilities extracts the dominant color from the
|
||||||
/// supplied [ImageProvider]. Using this color, a [ColorScheme] is generated
|
/// 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
|
/// 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
|
/// used in place of the generated colors for that field in the resulting
|
||||||
@ -1026,7 +1026,7 @@ class ColorScheme with Diagnosticable {
|
|||||||
/// * <https://m3.material.io/styles/color/the-color-system/color-roles>, the
|
/// * <https://m3.material.io/styles/color/the-color-system/color-roles>, the
|
||||||
/// Material 3 Color system specification.
|
/// Material 3 Color system specification.
|
||||||
/// * <https://pub.dev/packages/material_color_utilities>, the package
|
/// * <https://pub.dev/packages/material_color_utilities>, the package
|
||||||
/// used to algorightmically determine the dominant color and to generate
|
/// used to algorithmically determine the dominant color and to generate
|
||||||
/// the [ColorScheme].
|
/// the [ColorScheme].
|
||||||
static Future<ColorScheme> fromImageProvider({
|
static Future<ColorScheme> fromImageProvider({
|
||||||
required ImageProvider provider,
|
required ImageProvider provider,
|
||||||
|
@ -1778,7 +1778,7 @@ void main() {
|
|||||||
labelStyle: TextStyle(height: 4), // inherit: true
|
labelStyle: TextStyle(height: 4), // inherit: true
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
child: const Chip(label: Text('Label')), // labeStyle: null
|
child: const Chip(label: Text('Label')), // labelStyle: null
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -430,7 +430,7 @@ void main() {
|
|||||||
}, skip: isBrowser, // [intended] uses dart:isolate and io.
|
}, 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);
|
final Uint8List blueSquareBytes = Uint8List.fromList(kBlueSquarePng);
|
||||||
|
|
||||||
// Corrupt the image's bytelist so it cannot be read.
|
// Corrupt the image's bytelist so it cannot be read.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user