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

Correct typos (#102487)

parent 57a688c1
......@@ -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.
///
......
......@@ -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,
......
......@@ -561,7 +561,7 @@ abstract class MaterialStateUnderlineInputBorder extends UnderlineInputBorder im
/// Creates a [MaterialStateUnderlineInputBorder] from a [MaterialPropertyResolver<InputBorder>]
/// 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
......
......@@ -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<ShortcutActivator, Intent> _commonShortcuts = <ShortcutActivator, Intent>{
// Delete Shortcuts.
for (final bool pressShift in const <bool>[true, false])
......
......@@ -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:
///
......
......@@ -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);
......
......@@ -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;
......
......@@ -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<KeyEvent> events = <KeyEvent>[];
final List<RawKeyEvent> rawEvents = <RawKeyEvent>[];
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