Unverified Commit b264b614 authored by apeltop's avatar apeltop Committed by GitHub

Correct typos (#102487)

parent 57a688c1
...@@ -370,7 +370,7 @@ abstract class BindingBase { ...@@ -370,7 +370,7 @@ abstract class BindingBase {
/// before the point in the application code that wants to initialize the binding, or /// before the point in the application code that wants to initialize the binding, or
/// to verify that the binding is the one that is expected. /// to verify that the binding is the one that is expected.
/// ///
/// For example, if an application uses [Zone]s to report uncaught execptions, it may /// For example, if an application uses [Zone]s to report uncaught exceptions, it may
/// need to ensure that `ensureInitialized()` has not yet been invoked on any binding /// need to ensure that `ensureInitialized()` has not yet been invoked on any binding
/// at the point where it configures the zone and initializes the binding. /// at the point where it configures the zone and initializes the binding.
/// ///
......
...@@ -89,7 +89,7 @@ class InkSparkle extends InteractiveInkFeature { ...@@ -89,7 +89,7 @@ class InkSparkle extends InteractiveInkFeature {
/// is clipped with [rectCallback]. /// is clipped with [rectCallback].
/// When the ripple is removed, [onRemoved] will be called. /// When the ripple is removed, [onRemoved] will be called.
/// ///
/// [turbulenceSeed] can be passed if a non random seed shold be used for /// [turbulenceSeed] can be passed if a non random seed should be used for
/// the turbulence and sparkles. By default, the seed is a random number /// the turbulence and sparkles. By default, the seed is a random number
/// between 0.0 and 1000.0. /// between 0.0 and 1000.0.
/// ///
...@@ -291,7 +291,7 @@ class InkSparkle extends InteractiveInkFeature { ...@@ -291,7 +291,7 @@ class InkSparkle extends InteractiveInkFeature {
double get _height => referenceBox.size.height; double get _height => referenceBox.size.height;
/// All double values for uniforms come from the Android 12 ripple /// All double values for uniforms come from the Android 12 ripple
/// implentation from the following files: /// implementation from the following files:
/// - https://cs.android.com/android/platform/superproject/+/master:frameworks/base/graphics/java/android/graphics/drawable/RippleShader.java /// - https://cs.android.com/android/platform/superproject/+/master:frameworks/base/graphics/java/android/graphics/drawable/RippleShader.java
/// - https://cs.android.com/android/platform/superproject/+/master:frameworks/base/graphics/java/android/graphics/drawable/RippleDrawable.java /// - https://cs.android.com/android/platform/superproject/+/master:frameworks/base/graphics/java/android/graphics/drawable/RippleDrawable.java
/// - https://cs.android.com/android/platform/superproject/+/master:frameworks/base/graphics/java/android/graphics/drawable/RippleAnimationSession.java /// - https://cs.android.com/android/platform/superproject/+/master:frameworks/base/graphics/java/android/graphics/drawable/RippleAnimationSession.java
...@@ -319,11 +319,11 @@ class InkSparkle extends InteractiveInkFeature { ...@@ -319,11 +319,11 @@ class InkSparkle extends InteractiveInkFeature {
uSparkleAlpha: _sparkleAlpha.value, uSparkleAlpha: _sparkleAlpha.value,
// The following uniforms are driven by the turbulence phase and change // The following uniforms are driven by the turbulence phase and change
// each frame of the animation. Theese unifroms are uses to modify the // each frame of the animation. These uniforms are uses to modify the
// default (if these fields are unset or 0) circular outer ring to a // default (if these fields are unset or 0) circular outer ring to a
// non-uniform shape that is more like an actual ink splash. In addition // non-uniform shape that is more like an actual ink splash. In addition
// to the positional based triangular noise created in the shader, these // to the positional based triangular noise created in the shader, these
// uniforms also vary the appearence of the sparkles even when the same // uniforms also vary the appearance of the sparkles even when the same
// location is tapped. // location is tapped.
uTurbulencePhase: turbulencePhase, uTurbulencePhase: turbulencePhase,
uNoisePhase: noisePhase / 1000.0, uNoisePhase: noisePhase / 1000.0,
......
...@@ -561,7 +561,7 @@ abstract class MaterialStateUnderlineInputBorder extends UnderlineInputBorder im ...@@ -561,7 +561,7 @@ abstract class MaterialStateUnderlineInputBorder extends UnderlineInputBorder im
/// Creates a [MaterialStateUnderlineInputBorder] from a [MaterialPropertyResolver<InputBorder>] /// Creates a [MaterialStateUnderlineInputBorder] from a [MaterialPropertyResolver<InputBorder>]
/// callback function. /// callback function.
/// ///
/// If used as a regular ionput bortder, the border resolved in the default state (the /// If used as a regular input border, the border resolved in the default state (the
/// empty set of states) will be used. /// empty set of states) will be used.
/// ///
/// The given callback parameter must return a non-null text style in the default /// The given callback parameter must return a non-null text style in the default
......
...@@ -157,7 +157,7 @@ class DefaultTextEditingShortcuts extends Shortcuts { ...@@ -157,7 +157,7 @@ class DefaultTextEditingShortcuts extends Shortcuts {
); );
// These are shortcuts are shared between most platforms except macOS for it // These are shortcuts are shared between most platforms except macOS for it
// uses different modifier keys as the line/word modifer. // uses different modifier keys as the line/word modifier.
static final Map<ShortcutActivator, Intent> _commonShortcuts = <ShortcutActivator, Intent>{ static final Map<ShortcutActivator, Intent> _commonShortcuts = <ShortcutActivator, Intent>{
// Delete Shortcuts. // Delete Shortcuts.
for (final bool pressShift in const <bool>[true, false]) for (final bool pressShift in const <bool>[true, false])
......
...@@ -23,7 +23,7 @@ export 'package:flutter/services.dart' show KeyEvent; ...@@ -23,7 +23,7 @@ export 'package:flutter/services.dart' show KeyEvent;
/// ///
/// The [KeyboardListener] is different from [RawKeyboardListener] in that /// The [KeyboardListener] is different from [RawKeyboardListener] in that
/// [KeyboardListener] uses the newer [HardwareKeyboard] API, which is /// [KeyboardListener] uses the newer [HardwareKeyboard] API, which is
/// preferrable. /// preferable.
/// ///
/// See also: /// See also:
/// ///
......
...@@ -639,7 +639,7 @@ void main() { ...@@ -639,7 +639,7 @@ void main() {
tester.getBottomRight(_findButtonBar()).dx - 8.0, tester.getBottomRight(_findButtonBar()).dx - 8.0,
); // right ); // right
// Dismiss it and test materail 3 dialog // Dismiss it and test material 3 dialog
await tester.tapAt(const Offset(10.0, 10.0)); await tester.tapAt(const Offset(10.0, 10.0));
await tester.pumpAndSettle(); await tester.pumpAndSettle();
...@@ -2266,7 +2266,7 @@ void main() { ...@@ -2266,7 +2266,7 @@ void main() {
expect(tester.getTopLeft(find.byKey(actionKey)).dx, 800 - 20); expect(tester.getTopLeft(find.byKey(actionKey)).dx, 800 - 20);
expect(tester.getTopRight(find.byKey(actionKey)).dx, 800); expect(tester.getTopRight(find.byKey(actionKey)).dx, 800);
// All possible alginment values // All possible alignment values
await tester.pumpWidget(buildFrame(MainAxisAlignment.start)); await tester.pumpWidget(buildFrame(MainAxisAlignment.start));
expect(tester.getTopLeft(find.byKey(actionKey)).dx, 0); expect(tester.getTopLeft(find.byKey(actionKey)).dx, 0);
......
...@@ -776,7 +776,7 @@ void main() { ...@@ -776,7 +776,7 @@ void main() {
const double height = 400; const double height = 400;
// By default, the margin of a Card is 4 in all directions, so // By default, the margin of a Card is 4 in all directions, so
// the size of the DataTable (inside the Card) is horizontically // the size of the DataTable (inside the Card) is horizontally
// reduced by 4 * 2; the left and right margins. // reduced by 4 * 2; the left and right margins.
const double cardMargin = 8; const double cardMargin = 8;
......
...@@ -332,7 +332,7 @@ void main() { ...@@ -332,7 +332,7 @@ void main() {
// In that case, the key data should not be converted to any [KeyEvent]s, // In that case, the key data should not be converted to any [KeyEvent]s,
// but is only used so that *a* key data comes before the raw key message // but is only used so that *a* key data comes before the raw key message
// and makes [KeyEventManager] infer [KeyDataTransitMode.keyDataThenRawKeyData]. // and makes [KeyEventManager] infer [KeyDataTransitMode.keyDataThenRawKeyData].
testWidgets('Empty keyData yields no event but triggers inferrence', (WidgetTester tester) async { testWidgets('Empty keyData yields no event but triggers inference', (WidgetTester tester) async {
final List<KeyEvent> events = <KeyEvent>[]; final List<KeyEvent> events = <KeyEvent>[];
final List<RawKeyEvent> rawEvents = <RawKeyEvent>[]; final List<RawKeyEvent> rawEvents = <RawKeyEvent>[];
tester.binding.keyboard.addHandler((KeyEvent event) { tester.binding.keyboard.addHandler((KeyEvent event) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment