diff --git a/packages/flutter/lib/src/foundation/binding.dart b/packages/flutter/lib/src/foundation/binding.dart index 1bd57f1ae8..b40934bf73 100644 --- a/packages/flutter/lib/src/foundation/binding.dart +++ b/packages/flutter/lib/src/foundation/binding.dart @@ -370,7 +370,7 @@ abstract class BindingBase { /// 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. /// - /// 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 /// at the point where it configures the zone and initializes the binding. /// diff --git a/packages/flutter/lib/src/material/ink_sparkle.dart b/packages/flutter/lib/src/material/ink_sparkle.dart index 7abb64676d..ba50bdbe05 100644 --- a/packages/flutter/lib/src/material/ink_sparkle.dart +++ b/packages/flutter/lib/src/material/ink_sparkle.dart @@ -89,7 +89,7 @@ class InkSparkle extends InteractiveInkFeature { /// is clipped with [rectCallback]. /// 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 /// between 0.0 and 1000.0. /// @@ -291,7 +291,7 @@ class InkSparkle extends InteractiveInkFeature { double get _height => referenceBox.size.height; /// 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/RippleDrawable.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 { uSparkleAlpha: _sparkleAlpha.value, // 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 // non-uniform shape that is more like an actual ink splash. In addition // 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. uTurbulencePhase: turbulencePhase, uNoisePhase: noisePhase / 1000.0, diff --git a/packages/flutter/lib/src/material/material_state.dart b/packages/flutter/lib/src/material/material_state.dart index 073fc944f1..a67758b8ff 100644 --- a/packages/flutter/lib/src/material/material_state.dart +++ b/packages/flutter/lib/src/material/material_state.dart @@ -561,7 +561,7 @@ abstract class MaterialStateUnderlineInputBorder extends UnderlineInputBorder im /// Creates a [MaterialStateUnderlineInputBorder] from a [MaterialPropertyResolver] /// 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. /// /// The given callback parameter must return a non-null text style in the default diff --git a/packages/flutter/lib/src/widgets/default_text_editing_shortcuts.dart b/packages/flutter/lib/src/widgets/default_text_editing_shortcuts.dart index 54a9a60255..1bcf7d63b9 100644 --- a/packages/flutter/lib/src/widgets/default_text_editing_shortcuts.dart +++ b/packages/flutter/lib/src/widgets/default_text_editing_shortcuts.dart @@ -157,7 +157,7 @@ class DefaultTextEditingShortcuts extends Shortcuts { ); // 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 _commonShortcuts = { // Delete Shortcuts. for (final bool pressShift in const [true, false]) diff --git a/packages/flutter/lib/src/widgets/keyboard_listener.dart b/packages/flutter/lib/src/widgets/keyboard_listener.dart index 34ab2f1d21..854d704b8c 100644 --- a/packages/flutter/lib/src/widgets/keyboard_listener.dart +++ b/packages/flutter/lib/src/widgets/keyboard_listener.dart @@ -23,7 +23,7 @@ export 'package:flutter/services.dart' show KeyEvent; /// /// The [KeyboardListener] is different from [RawKeyboardListener] in that /// [KeyboardListener] uses the newer [HardwareKeyboard] API, which is -/// preferrable. +/// preferable. /// /// See also: /// diff --git a/packages/flutter/test/material/dialog_test.dart b/packages/flutter/test/material/dialog_test.dart index f1b958490a..9645c510ac 100644 --- a/packages/flutter/test/material/dialog_test.dart +++ b/packages/flutter/test/material/dialog_test.dart @@ -639,7 +639,7 @@ void main() { tester.getBottomRight(_findButtonBar()).dx - 8.0, ); // 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.pumpAndSettle(); @@ -2266,7 +2266,7 @@ void main() { expect(tester.getTopLeft(find.byKey(actionKey)).dx, 800 - 20); expect(tester.getTopRight(find.byKey(actionKey)).dx, 800); - // All possible alginment values + // All possible alignment values await tester.pumpWidget(buildFrame(MainAxisAlignment.start)); expect(tester.getTopLeft(find.byKey(actionKey)).dx, 0); diff --git a/packages/flutter/test/material/paginated_data_table_test.dart b/packages/flutter/test/material/paginated_data_table_test.dart index 874836f85c..43c5ce0711 100644 --- a/packages/flutter/test/material/paginated_data_table_test.dart +++ b/packages/flutter/test/material/paginated_data_table_test.dart @@ -776,7 +776,7 @@ void main() { const double height = 400; // 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. const double cardMargin = 8; diff --git a/packages/flutter/test/services/hardware_keyboard_test.dart b/packages/flutter/test/services/hardware_keyboard_test.dart index a6080f8a23..b5ef83af97 100644 --- a/packages/flutter/test/services/hardware_keyboard_test.dart +++ b/packages/flutter/test/services/hardware_keyboard_test.dart @@ -332,7 +332,7 @@ void main() { // 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 // 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 events = []; final List rawEvents = []; tester.binding.keyboard.addHandler((KeyEvent event) {